diff options
Diffstat (limited to 'drivers/nubus/nubus.c')
-rw-r--r-- | drivers/nubus/nubus.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/nubus/nubus.c b/drivers/nubus/nubus.c index f4076aeb2098..2f047e573d86 100644 --- a/drivers/nubus/nubus.c +++ b/drivers/nubus/nubus.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <linux/errno.h> | 14 | #include <linux/errno.h> |
15 | #include <linux/init.h> | 15 | #include <linux/init.h> |
16 | #include <linux/delay.h> | 16 | #include <linux/delay.h> |
17 | #include <linux/module.h> | ||
17 | #include <asm/setup.h> | 18 | #include <asm/setup.h> |
18 | #include <asm/system.h> | 19 | #include <asm/system.h> |
19 | #include <asm/page.h> | 20 | #include <asm/page.h> |
@@ -186,6 +187,7 @@ void nubus_get_rsrc_mem(void *dest, const struct nubus_dirent* dirent, | |||
186 | len--; | 187 | len--; |
187 | } | 188 | } |
188 | } | 189 | } |
190 | EXPORT_SYMBOL(nubus_get_rsrc_mem); | ||
189 | 191 | ||
190 | void nubus_get_rsrc_str(void *dest, const struct nubus_dirent* dirent, | 192 | void nubus_get_rsrc_str(void *dest, const struct nubus_dirent* dirent, |
191 | int len) | 193 | int len) |
@@ -200,6 +202,7 @@ void nubus_get_rsrc_str(void *dest, const struct nubus_dirent* dirent, | |||
200 | len--; | 202 | len--; |
201 | } | 203 | } |
202 | } | 204 | } |
205 | EXPORT_SYMBOL(nubus_get_rsrc_str); | ||
203 | 206 | ||
204 | int nubus_get_root_dir(const struct nubus_board* board, | 207 | int nubus_get_root_dir(const struct nubus_board* board, |
205 | struct nubus_dir* dir) | 208 | struct nubus_dir* dir) |
@@ -209,6 +212,7 @@ int nubus_get_root_dir(const struct nubus_board* board, | |||
209 | dir->mask = board->lanes; | 212 | dir->mask = board->lanes; |
210 | return 0; | 213 | return 0; |
211 | } | 214 | } |
215 | EXPORT_SYMBOL(nubus_get_root_dir); | ||
212 | 216 | ||
213 | /* This is a slyly renamed version of the above */ | 217 | /* This is a slyly renamed version of the above */ |
214 | int nubus_get_func_dir(const struct nubus_dev* dev, | 218 | int nubus_get_func_dir(const struct nubus_dev* dev, |
@@ -219,6 +223,7 @@ int nubus_get_func_dir(const struct nubus_dev* dev, | |||
219 | dir->mask = dev->board->lanes; | 223 | dir->mask = dev->board->lanes; |
220 | return 0; | 224 | return 0; |
221 | } | 225 | } |
226 | EXPORT_SYMBOL(nubus_get_func_dir); | ||
222 | 227 | ||
223 | int nubus_get_board_dir(const struct nubus_board* board, | 228 | int nubus_get_board_dir(const struct nubus_board* board, |
224 | struct nubus_dir* dir) | 229 | struct nubus_dir* dir) |
@@ -237,6 +242,7 @@ int nubus_get_board_dir(const struct nubus_board* board, | |||
237 | return -1; | 242 | return -1; |
238 | return 0; | 243 | return 0; |
239 | } | 244 | } |
245 | EXPORT_SYMBOL(nubus_get_board_dir); | ||
240 | 246 | ||
241 | int nubus_get_subdir(const struct nubus_dirent *ent, | 247 | int nubus_get_subdir(const struct nubus_dirent *ent, |
242 | struct nubus_dir *dir) | 248 | struct nubus_dir *dir) |
@@ -246,6 +252,7 @@ int nubus_get_subdir(const struct nubus_dirent *ent, | |||
246 | dir->mask = ent->mask; | 252 | dir->mask = ent->mask; |
247 | return 0; | 253 | return 0; |
248 | } | 254 | } |
255 | EXPORT_SYMBOL(nubus_get_subdir); | ||
249 | 256 | ||
250 | int nubus_readdir(struct nubus_dir *nd, struct nubus_dirent *ent) | 257 | int nubus_readdir(struct nubus_dir *nd, struct nubus_dirent *ent) |
251 | { | 258 | { |
@@ -274,12 +281,14 @@ int nubus_readdir(struct nubus_dir *nd, struct nubus_dirent *ent) | |||
274 | ent->mask = nd->mask; | 281 | ent->mask = nd->mask; |
275 | return 0; | 282 | return 0; |
276 | } | 283 | } |
284 | EXPORT_SYMBOL(nubus_readdir); | ||
277 | 285 | ||
278 | int nubus_rewinddir(struct nubus_dir* dir) | 286 | int nubus_rewinddir(struct nubus_dir* dir) |
279 | { | 287 | { |
280 | dir->ptr = dir->base; | 288 | dir->ptr = dir->base; |
281 | return 0; | 289 | return 0; |
282 | } | 290 | } |
291 | EXPORT_SYMBOL(nubus_rewinddir); | ||
283 | 292 | ||
284 | /* Driver interface functions, more or less like in pci.c */ | 293 | /* Driver interface functions, more or less like in pci.c */ |
285 | 294 | ||
@@ -303,6 +312,7 @@ nubus_find_device(unsigned short category, | |||
303 | } | 312 | } |
304 | return NULL; | 313 | return NULL; |
305 | } | 314 | } |
315 | EXPORT_SYMBOL(nubus_find_device); | ||
306 | 316 | ||
307 | struct nubus_dev* | 317 | struct nubus_dev* |
308 | nubus_find_type(unsigned short category, | 318 | nubus_find_type(unsigned short category, |
@@ -320,6 +330,7 @@ nubus_find_type(unsigned short category, | |||
320 | } | 330 | } |
321 | return NULL; | 331 | return NULL; |
322 | } | 332 | } |
333 | EXPORT_SYMBOL(nubus_find_type); | ||
323 | 334 | ||
324 | struct nubus_dev* | 335 | struct nubus_dev* |
325 | nubus_find_slot(unsigned int slot, | 336 | nubus_find_slot(unsigned int slot, |
@@ -335,6 +346,7 @@ nubus_find_slot(unsigned int slot, | |||
335 | } | 346 | } |
336 | return NULL; | 347 | return NULL; |
337 | } | 348 | } |
349 | EXPORT_SYMBOL(nubus_find_slot); | ||
338 | 350 | ||
339 | int | 351 | int |
340 | nubus_find_rsrc(struct nubus_dir* dir, unsigned char rsrc_type, | 352 | nubus_find_rsrc(struct nubus_dir* dir, unsigned char rsrc_type, |
@@ -346,6 +358,7 @@ nubus_find_rsrc(struct nubus_dir* dir, unsigned char rsrc_type, | |||
346 | } | 358 | } |
347 | return -1; | 359 | return -1; |
348 | } | 360 | } |
361 | EXPORT_SYMBOL(nubus_find_rsrc); | ||
349 | 362 | ||
350 | /* Initialization functions - decide which slots contain stuff worth | 363 | /* Initialization functions - decide which slots contain stuff worth |
351 | looking at, and print out lots and lots of information from the | 364 | looking at, and print out lots and lots of information from the |