Michal Nazarewicz | 5ab54cf | 2010-11-12 14:29:28 +0100 | [diff] [blame^] | 1 | /* |
| 2 | * g_ffs.c -- user mode file system API for USB composite function controllers |
| 3 | * |
| 4 | * Copyright (C) 2010 Samsung Electronics |
| 5 | * Author: Michal Nazarewicz <m.nazarewicz@samsung.com> |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License as published by |
| 9 | * the Free Software Foundation; either version 2 of the License, or |
| 10 | * (at your option) any later version. |
| 11 | * |
| 12 | * This program is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | * GNU General Public License for more details. |
| 16 | * |
| 17 | * You should have received a copy of the GNU General Public License |
| 18 | * along with this program; if not, write to the Free Software |
| 19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 20 | */ |
| 21 | |
Michal Nazarewicz | c6c5600 | 2010-05-05 12:53:15 +0200 | [diff] [blame] | 22 | #include <linux/module.h> |
| 23 | #include <linux/utsname.h> |
| 24 | |
Michal Nazarewicz | c6c5600 | 2010-05-05 12:53:15 +0200 | [diff] [blame] | 25 | /* |
| 26 | * kbuild is not very cooperative with respect to linking separately |
| 27 | * compiled library objects into one module. So for now we won't use |
| 28 | * separate compilation ... ensuring init/exit sections work to shrink |
| 29 | * the runtime footprint, and giving us at least some parts of what |
| 30 | * a "gcc --combine ... part1.c part2.c part3.c ... " build would. |
| 31 | */ |
| 32 | |
| 33 | #include "composite.c" |
| 34 | #include "usbstring.c" |
| 35 | #include "config.c" |
| 36 | #include "epautoconf.c" |
| 37 | |
| 38 | #if defined CONFIG_USB_FUNCTIONFS_ETH || defined CONFIG_USB_FUNCTIONFS_RNDIS |
| 39 | # if defined USB_ETH_RNDIS |
| 40 | # undef USB_ETH_RNDIS |
| 41 | # endif |
| 42 | # ifdef CONFIG_USB_FUNCTIONFS_RNDIS |
| 43 | # define USB_ETH_RNDIS y |
| 44 | # endif |
| 45 | |
| 46 | # include "f_ecm.c" |
| 47 | # include "f_subset.c" |
| 48 | # ifdef USB_ETH_RNDIS |
| 49 | # include "f_rndis.c" |
| 50 | # include "rndis.c" |
| 51 | # endif |
| 52 | # include "u_ether.c" |
| 53 | |
| 54 | static u8 gfs_hostaddr[ETH_ALEN]; |
Michal Nazarewicz | f8dae53 | 2010-06-25 16:29:27 +0200 | [diff] [blame] | 55 | # ifdef CONFIG_USB_FUNCTIONFS_ETH |
| 56 | static int eth_bind_config(struct usb_configuration *c, u8 ethaddr[ETH_ALEN]); |
Michal Nazarewicz | c6c5600 | 2010-05-05 12:53:15 +0200 | [diff] [blame] | 57 | # endif |
Michal Nazarewicz | f8dae53 | 2010-06-25 16:29:27 +0200 | [diff] [blame] | 58 | #else |
Michal Nazarewicz | c6c5600 | 2010-05-05 12:53:15 +0200 | [diff] [blame] | 59 | # define gether_cleanup() do { } while (0) |
| 60 | # define gether_setup(gadget, hostaddr) ((int)0) |
Michal Nazarewicz | f8dae53 | 2010-06-25 16:29:27 +0200 | [diff] [blame] | 61 | # define gfs_hostaddr NULL |
Michal Nazarewicz | c6c5600 | 2010-05-05 12:53:15 +0200 | [diff] [blame] | 62 | #endif |
| 63 | |
| 64 | #include "f_fs.c" |
| 65 | |
Michal Nazarewicz | c6c5600 | 2010-05-05 12:53:15 +0200 | [diff] [blame] | 66 | #define DRIVER_NAME "g_ffs" |
| 67 | #define DRIVER_DESC "USB Function Filesystem" |
| 68 | #define DRIVER_VERSION "24 Aug 2004" |
| 69 | |
| 70 | MODULE_DESCRIPTION(DRIVER_DESC); |
| 71 | MODULE_AUTHOR("Michal Nazarewicz"); |
| 72 | MODULE_LICENSE("GPL"); |
| 73 | |
Michal Nazarewicz | fc19de6 | 2010-08-12 17:43:48 +0200 | [diff] [blame] | 74 | #define GFS_VENDOR_ID 0x1d6b /* Linux Foundation */ |
| 75 | #define GFS_PRODUCT_ID 0x0105 /* FunctionFS Gadget */ |
Michal Nazarewicz | c6c5600 | 2010-05-05 12:53:15 +0200 | [diff] [blame] | 76 | |
| 77 | static struct usb_device_descriptor gfs_dev_desc = { |
| 78 | .bLength = sizeof gfs_dev_desc, |
| 79 | .bDescriptorType = USB_DT_DEVICE, |
| 80 | |
| 81 | .bcdUSB = cpu_to_le16(0x0200), |
| 82 | .bDeviceClass = USB_CLASS_PER_INTERFACE, |
| 83 | |
Michal Nazarewicz | fc19de6 | 2010-08-12 17:43:48 +0200 | [diff] [blame] | 84 | .idVendor = cpu_to_le16(GFS_VENDOR_ID), |
| 85 | .idProduct = cpu_to_le16(GFS_PRODUCT_ID), |
Michal Nazarewicz | c6c5600 | 2010-05-05 12:53:15 +0200 | [diff] [blame] | 86 | }; |
| 87 | |
Michal Nazarewicz | fc19de6 | 2010-08-12 17:43:48 +0200 | [diff] [blame] | 88 | module_param_named(bDeviceClass, gfs_dev_desc.bDeviceClass, byte, 0644); |
| 89 | MODULE_PARM_DESC(bDeviceClass, "USB Device class"); |
| 90 | module_param_named(bDeviceSubClass, gfs_dev_desc.bDeviceSubClass, byte, 0644); |
| 91 | MODULE_PARM_DESC(bDeviceSubClass, "USB Device subclass"); |
| 92 | module_param_named(bDeviceProtocol, gfs_dev_desc.bDeviceProtocol, byte, 0644); |
| 93 | MODULE_PARM_DESC(bDeviceProtocol, "USB Device protocol"); |
Michal Nazarewicz | c6c5600 | 2010-05-05 12:53:15 +0200 | [diff] [blame] | 94 | |
Michal Nazarewicz | c6c5600 | 2010-05-05 12:53:15 +0200 | [diff] [blame] | 95 | static const struct usb_descriptor_header *gfs_otg_desc[] = { |
| 96 | (const struct usb_descriptor_header *) |
| 97 | &(const struct usb_otg_descriptor) { |
| 98 | .bLength = sizeof(struct usb_otg_descriptor), |
| 99 | .bDescriptorType = USB_DT_OTG, |
| 100 | |
Michal Nazarewicz | fc19de6 | 2010-08-12 17:43:48 +0200 | [diff] [blame] | 101 | /* |
| 102 | * REVISIT SRP-only hardware is possible, although |
| 103 | * it would not be called "OTG" ... |
| 104 | */ |
Michal Nazarewicz | c6c5600 | 2010-05-05 12:53:15 +0200 | [diff] [blame] | 105 | .bmAttributes = USB_OTG_SRP | USB_OTG_HNP, |
| 106 | }, |
| 107 | |
| 108 | NULL |
| 109 | }; |
| 110 | |
Michal Nazarewicz | 5ab54cf | 2010-11-12 14:29:28 +0100 | [diff] [blame^] | 111 | /* String IDs are assigned dynamically */ |
Michal Nazarewicz | c6c5600 | 2010-05-05 12:53:15 +0200 | [diff] [blame] | 112 | static struct usb_string gfs_strings[] = { |
Michal Nazarewicz | c6c5600 | 2010-05-05 12:53:15 +0200 | [diff] [blame] | 113 | #ifdef CONFIG_USB_FUNCTIONFS_RNDIS |
Michal Nazarewicz | f8dae53 | 2010-06-25 16:29:27 +0200 | [diff] [blame] | 114 | { .s = "FunctionFS + RNDIS" }, |
Michal Nazarewicz | c6c5600 | 2010-05-05 12:53:15 +0200 | [diff] [blame] | 115 | #endif |
| 116 | #ifdef CONFIG_USB_FUNCTIONFS_ETH |
Michal Nazarewicz | f8dae53 | 2010-06-25 16:29:27 +0200 | [diff] [blame] | 117 | { .s = "FunctionFS + ECM" }, |
Michal Nazarewicz | c6c5600 | 2010-05-05 12:53:15 +0200 | [diff] [blame] | 118 | #endif |
| 119 | #ifdef CONFIG_USB_FUNCTIONFS_GENERIC |
Michal Nazarewicz | f8dae53 | 2010-06-25 16:29:27 +0200 | [diff] [blame] | 120 | { .s = "FunctionFS" }, |
Michal Nazarewicz | c6c5600 | 2010-05-05 12:53:15 +0200 | [diff] [blame] | 121 | #endif |
| 122 | { } /* end of list */ |
| 123 | }; |
| 124 | |
| 125 | static struct usb_gadget_strings *gfs_dev_strings[] = { |
| 126 | &(struct usb_gadget_strings) { |
| 127 | .language = 0x0409, /* en-us */ |
| 128 | .strings = gfs_strings, |
| 129 | }, |
| 130 | NULL, |
| 131 | }; |
| 132 | |
Michal Nazarewicz | f8dae53 | 2010-06-25 16:29:27 +0200 | [diff] [blame] | 133 | struct gfs_configuration { |
| 134 | struct usb_configuration c; |
| 135 | int (*eth)(struct usb_configuration *c, u8 *ethaddr); |
| 136 | } gfs_configurations[] = { |
Michal Nazarewicz | c6c5600 | 2010-05-05 12:53:15 +0200 | [diff] [blame] | 137 | #ifdef CONFIG_USB_FUNCTIONFS_RNDIS |
Michal Nazarewicz | f8dae53 | 2010-06-25 16:29:27 +0200 | [diff] [blame] | 138 | { |
| 139 | .eth = rndis_bind_config, |
| 140 | }, |
Michal Nazarewicz | c6c5600 | 2010-05-05 12:53:15 +0200 | [diff] [blame] | 141 | #endif |
| 142 | |
Michal Nazarewicz | c6c5600 | 2010-05-05 12:53:15 +0200 | [diff] [blame] | 143 | #ifdef CONFIG_USB_FUNCTIONFS_ETH |
Michal Nazarewicz | f8dae53 | 2010-06-25 16:29:27 +0200 | [diff] [blame] | 144 | { |
| 145 | .eth = eth_bind_config, |
| 146 | }, |
Michal Nazarewicz | c6c5600 | 2010-05-05 12:53:15 +0200 | [diff] [blame] | 147 | #endif |
| 148 | |
Michal Nazarewicz | c6c5600 | 2010-05-05 12:53:15 +0200 | [diff] [blame] | 149 | #ifdef CONFIG_USB_FUNCTIONFS_GENERIC |
Michal Nazarewicz | f8dae53 | 2010-06-25 16:29:27 +0200 | [diff] [blame] | 150 | { |
| 151 | }, |
Michal Nazarewicz | c6c5600 | 2010-05-05 12:53:15 +0200 | [diff] [blame] | 152 | #endif |
Michal Nazarewicz | f8dae53 | 2010-06-25 16:29:27 +0200 | [diff] [blame] | 153 | }; |
Michal Nazarewicz | c6c5600 | 2010-05-05 12:53:15 +0200 | [diff] [blame] | 154 | |
Michal Nazarewicz | c6c5600 | 2010-05-05 12:53:15 +0200 | [diff] [blame] | 155 | static int gfs_bind(struct usb_composite_dev *cdev); |
| 156 | static int gfs_unbind(struct usb_composite_dev *cdev); |
Michal Nazarewicz | f8dae53 | 2010-06-25 16:29:27 +0200 | [diff] [blame] | 157 | static int gfs_do_config(struct usb_configuration *c); |
Michal Nazarewicz | c6c5600 | 2010-05-05 12:53:15 +0200 | [diff] [blame] | 158 | |
| 159 | static struct usb_composite_driver gfs_driver = { |
Michal Nazarewicz | fc19de6 | 2010-08-12 17:43:48 +0200 | [diff] [blame] | 160 | .name = DRIVER_NAME, |
Michal Nazarewicz | c6c5600 | 2010-05-05 12:53:15 +0200 | [diff] [blame] | 161 | .dev = &gfs_dev_desc, |
| 162 | .strings = gfs_dev_strings, |
Michal Nazarewicz | c6c5600 | 2010-05-05 12:53:15 +0200 | [diff] [blame] | 163 | .unbind = gfs_unbind, |
Michal Nazarewicz | fc19de6 | 2010-08-12 17:43:48 +0200 | [diff] [blame] | 164 | .iProduct = DRIVER_DESC, |
Michal Nazarewicz | c6c5600 | 2010-05-05 12:53:15 +0200 | [diff] [blame] | 165 | }; |
| 166 | |
Michal Nazarewicz | c6c5600 | 2010-05-05 12:53:15 +0200 | [diff] [blame] | 167 | static struct ffs_data *gfs_ffs_data; |
| 168 | static unsigned long gfs_registered; |
| 169 | |
Michal Nazarewicz | c6c5600 | 2010-05-05 12:53:15 +0200 | [diff] [blame] | 170 | static int gfs_init(void) |
| 171 | { |
| 172 | ENTER(); |
| 173 | |
| 174 | return functionfs_init(); |
| 175 | } |
| 176 | module_init(gfs_init); |
| 177 | |
| 178 | static void gfs_exit(void) |
| 179 | { |
| 180 | ENTER(); |
| 181 | |
| 182 | if (test_and_clear_bit(0, &gfs_registered)) |
| 183 | usb_composite_unregister(&gfs_driver); |
| 184 | |
| 185 | functionfs_cleanup(); |
| 186 | } |
| 187 | module_exit(gfs_exit); |
| 188 | |
Michal Nazarewicz | c6c5600 | 2010-05-05 12:53:15 +0200 | [diff] [blame] | 189 | static int functionfs_ready_callback(struct ffs_data *ffs) |
| 190 | { |
| 191 | int ret; |
| 192 | |
| 193 | ENTER(); |
| 194 | |
| 195 | if (WARN_ON(test_and_set_bit(0, &gfs_registered))) |
| 196 | return -EBUSY; |
| 197 | |
| 198 | gfs_ffs_data = ffs; |
Michal Nazarewicz | 07a18bd | 2010-08-12 17:43:54 +0200 | [diff] [blame] | 199 | ret = usb_composite_probe(&gfs_driver, gfs_bind); |
Michal Nazarewicz | c6c5600 | 2010-05-05 12:53:15 +0200 | [diff] [blame] | 200 | if (unlikely(ret < 0)) |
| 201 | clear_bit(0, &gfs_registered); |
| 202 | return ret; |
| 203 | } |
| 204 | |
| 205 | static void functionfs_closed_callback(struct ffs_data *ffs) |
| 206 | { |
| 207 | ENTER(); |
| 208 | |
| 209 | if (test_and_clear_bit(0, &gfs_registered)) |
| 210 | usb_composite_unregister(&gfs_driver); |
| 211 | } |
| 212 | |
Michal Nazarewicz | c6c5600 | 2010-05-05 12:53:15 +0200 | [diff] [blame] | 213 | static int functionfs_check_dev_callback(const char *dev_name) |
| 214 | { |
| 215 | return 0; |
| 216 | } |
| 217 | |
Michal Nazarewicz | c6c5600 | 2010-05-05 12:53:15 +0200 | [diff] [blame] | 218 | static int gfs_bind(struct usb_composite_dev *cdev) |
| 219 | { |
Michal Nazarewicz | f8dae53 | 2010-06-25 16:29:27 +0200 | [diff] [blame] | 220 | int ret, i; |
Michal Nazarewicz | c6c5600 | 2010-05-05 12:53:15 +0200 | [diff] [blame] | 221 | |
| 222 | ENTER(); |
| 223 | |
| 224 | if (WARN_ON(!gfs_ffs_data)) |
| 225 | return -ENODEV; |
| 226 | |
| 227 | ret = gether_setup(cdev->gadget, gfs_hostaddr); |
| 228 | if (unlikely(ret < 0)) |
| 229 | goto error_quick; |
| 230 | |
Michal Nazarewicz | f8dae53 | 2010-06-25 16:29:27 +0200 | [diff] [blame] | 231 | ret = usb_string_ids_tab(cdev, gfs_strings); |
Michal Nazarewicz | c6c5600 | 2010-05-05 12:53:15 +0200 | [diff] [blame] | 232 | if (unlikely(ret < 0)) |
| 233 | goto error; |
Michal Nazarewicz | c6c5600 | 2010-05-05 12:53:15 +0200 | [diff] [blame] | 234 | |
Michal Nazarewicz | c6c5600 | 2010-05-05 12:53:15 +0200 | [diff] [blame] | 235 | ret = functionfs_bind(gfs_ffs_data, cdev); |
| 236 | if (unlikely(ret < 0)) |
| 237 | goto error; |
| 238 | |
Michal Nazarewicz | f8dae53 | 2010-06-25 16:29:27 +0200 | [diff] [blame] | 239 | for (i = 0; i < ARRAY_SIZE(gfs_configurations); ++i) { |
| 240 | struct gfs_configuration *c = gfs_configurations + i; |
Michal Nazarewicz | c6c5600 | 2010-05-05 12:53:15 +0200 | [diff] [blame] | 241 | |
Michal Nazarewicz | fc19de6 | 2010-08-12 17:43:48 +0200 | [diff] [blame] | 242 | c->c.label = gfs_strings[i].s; |
| 243 | c->c.iConfiguration = gfs_strings[i].id; |
Michal Nazarewicz | f8dae53 | 2010-06-25 16:29:27 +0200 | [diff] [blame] | 244 | c->c.bConfigurationValue = 1 + i; |
| 245 | c->c.bmAttributes = USB_CONFIG_ATT_SELFPOWER; |
Michal Nazarewicz | c6c5600 | 2010-05-05 12:53:15 +0200 | [diff] [blame] | 246 | |
Uwe Kleine-König | c9bfff9 | 2010-08-12 17:43:55 +0200 | [diff] [blame] | 247 | ret = usb_add_config(cdev, &c->c, gfs_do_config); |
Michal Nazarewicz | f8dae53 | 2010-06-25 16:29:27 +0200 | [diff] [blame] | 248 | if (unlikely(ret < 0)) |
| 249 | goto error_unbind; |
| 250 | } |
Michal Nazarewicz | c6c5600 | 2010-05-05 12:53:15 +0200 | [diff] [blame] | 251 | |
| 252 | return 0; |
| 253 | |
| 254 | error_unbind: |
| 255 | functionfs_unbind(gfs_ffs_data); |
| 256 | error: |
| 257 | gether_cleanup(); |
| 258 | error_quick: |
| 259 | gfs_ffs_data = NULL; |
| 260 | return ret; |
| 261 | } |
| 262 | |
| 263 | static int gfs_unbind(struct usb_composite_dev *cdev) |
| 264 | { |
| 265 | ENTER(); |
| 266 | |
Michal Nazarewicz | fc19de6 | 2010-08-12 17:43:48 +0200 | [diff] [blame] | 267 | /* |
| 268 | * We may have been called in an error recovery from |
Michal Nazarewicz | c6c5600 | 2010-05-05 12:53:15 +0200 | [diff] [blame] | 269 | * composite_bind() after gfs_unbind() failure so we need to |
| 270 | * check if gfs_ffs_data is not NULL since gfs_bind() handles |
| 271 | * all error recovery itself. I'd rather we werent called |
| 272 | * from composite on orror recovery, but what you're gonna |
Michal Nazarewicz | fc19de6 | 2010-08-12 17:43:48 +0200 | [diff] [blame] | 273 | * do...? |
| 274 | */ |
Michal Nazarewicz | c6c5600 | 2010-05-05 12:53:15 +0200 | [diff] [blame] | 275 | if (gfs_ffs_data) { |
| 276 | gether_cleanup(); |
| 277 | functionfs_unbind(gfs_ffs_data); |
| 278 | gfs_ffs_data = NULL; |
| 279 | } |
| 280 | |
| 281 | return 0; |
| 282 | } |
| 283 | |
Michal Nazarewicz | f8dae53 | 2010-06-25 16:29:27 +0200 | [diff] [blame] | 284 | static int gfs_do_config(struct usb_configuration *c) |
Michal Nazarewicz | c6c5600 | 2010-05-05 12:53:15 +0200 | [diff] [blame] | 285 | { |
Michal Nazarewicz | f8dae53 | 2010-06-25 16:29:27 +0200 | [diff] [blame] | 286 | struct gfs_configuration *gc = |
| 287 | container_of(c, struct gfs_configuration, c); |
Michal Nazarewicz | c6c5600 | 2010-05-05 12:53:15 +0200 | [diff] [blame] | 288 | int ret; |
| 289 | |
| 290 | if (WARN_ON(!gfs_ffs_data)) |
| 291 | return -ENODEV; |
| 292 | |
| 293 | if (gadget_is_otg(c->cdev->gadget)) { |
| 294 | c->descriptors = gfs_otg_desc; |
| 295 | c->bmAttributes |= USB_CONFIG_ATT_WAKEUP; |
| 296 | } |
| 297 | |
Michal Nazarewicz | f8dae53 | 2010-06-25 16:29:27 +0200 | [diff] [blame] | 298 | if (gc->eth) { |
| 299 | ret = gc->eth(c, gfs_hostaddr); |
Michal Nazarewicz | c6c5600 | 2010-05-05 12:53:15 +0200 | [diff] [blame] | 300 | if (unlikely(ret < 0)) |
| 301 | return ret; |
| 302 | } |
| 303 | |
Michal Nazarewicz | 7898aee | 2010-06-16 12:07:58 +0200 | [diff] [blame] | 304 | ret = functionfs_bind_config(c->cdev, c, gfs_ffs_data); |
Michal Nazarewicz | c6c5600 | 2010-05-05 12:53:15 +0200 | [diff] [blame] | 305 | if (unlikely(ret < 0)) |
| 306 | return ret; |
| 307 | |
Michal Nazarewicz | fc19de6 | 2010-08-12 17:43:48 +0200 | [diff] [blame] | 308 | /* |
| 309 | * After previous do_configs there may be some invalid |
Michal Nazarewicz | f588c0d | 2010-06-14 10:43:34 +0200 | [diff] [blame] | 310 | * pointers in c->interface array. This happens every time |
| 311 | * a user space function with fewer interfaces than a user |
| 312 | * space function that was run before the new one is run. The |
| 313 | * compasit's set_config() assumes that if there is no more |
| 314 | * then MAX_CONFIG_INTERFACES interfaces in a configuration |
| 315 | * then there is a NULL pointer after the last interface in |
Michal Nazarewicz | fc19de6 | 2010-08-12 17:43:48 +0200 | [diff] [blame] | 316 | * c->interface array. We need to make sure this is true. |
| 317 | */ |
Michal Nazarewicz | f588c0d | 2010-06-14 10:43:34 +0200 | [diff] [blame] | 318 | if (c->next_interface_id < ARRAY_SIZE(c->interface)) |
| 319 | c->interface[c->next_interface_id] = NULL; |
| 320 | |
Michal Nazarewicz | c6c5600 | 2010-05-05 12:53:15 +0200 | [diff] [blame] | 321 | return 0; |
| 322 | } |
| 323 | |
Michal Nazarewicz | c6c5600 | 2010-05-05 12:53:15 +0200 | [diff] [blame] | 324 | #ifdef CONFIG_USB_FUNCTIONFS_ETH |
Michal Nazarewicz | fc19de6 | 2010-08-12 17:43:48 +0200 | [diff] [blame] | 325 | |
Michal Nazarewicz | f8dae53 | 2010-06-25 16:29:27 +0200 | [diff] [blame] | 326 | static int eth_bind_config(struct usb_configuration *c, u8 ethaddr[ETH_ALEN]) |
Michal Nazarewicz | c6c5600 | 2010-05-05 12:53:15 +0200 | [diff] [blame] | 327 | { |
Michal Nazarewicz | f8dae53 | 2010-06-25 16:29:27 +0200 | [diff] [blame] | 328 | return can_support_ecm(c->cdev->gadget) |
| 329 | ? ecm_bind_config(c, ethaddr) |
| 330 | : geth_bind_config(c, ethaddr); |
Michal Nazarewicz | c6c5600 | 2010-05-05 12:53:15 +0200 | [diff] [blame] | 331 | } |
Michal Nazarewicz | fc19de6 | 2010-08-12 17:43:48 +0200 | [diff] [blame] | 332 | |
Michal Nazarewicz | c6c5600 | 2010-05-05 12:53:15 +0200 | [diff] [blame] | 333 | #endif |