aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/nubus/nubus.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/nubus/nubus.c')
-rw-r--r--drivers/nubus/nubus.c13
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}
190EXPORT_SYMBOL(nubus_get_rsrc_mem);
189 191
190void nubus_get_rsrc_str(void *dest, const struct nubus_dirent* dirent, 192void 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}
205EXPORT_SYMBOL(nubus_get_rsrc_str);
203 206
204int nubus_get_root_dir(const struct nubus_board* board, 207int 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}
215EXPORT_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 */
214int nubus_get_func_dir(const struct nubus_dev* dev, 218int 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}
226EXPORT_SYMBOL(nubus_get_func_dir);
222 227
223int nubus_get_board_dir(const struct nubus_board* board, 228int 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}
245EXPORT_SYMBOL(nubus_get_board_dir);
240 246
241int nubus_get_subdir(const struct nubus_dirent *ent, 247int 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}
255EXPORT_SYMBOL(nubus_get_subdir);
249 256
250int nubus_readdir(struct nubus_dir *nd, struct nubus_dirent *ent) 257int 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}
284EXPORT_SYMBOL(nubus_readdir);
277 285
278int nubus_rewinddir(struct nubus_dir* dir) 286int 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}
291EXPORT_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}
315EXPORT_SYMBOL(nubus_find_device);
306 316
307struct nubus_dev* 317struct nubus_dev*
308nubus_find_type(unsigned short category, 318nubus_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}
333EXPORT_SYMBOL(nubus_find_type);
323 334
324struct nubus_dev* 335struct nubus_dev*
325nubus_find_slot(unsigned int slot, 336nubus_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}
349EXPORT_SYMBOL(nubus_find_slot);
338 350
339int 351int
340nubus_find_rsrc(struct nubus_dir* dir, unsigned char rsrc_type, 352nubus_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}
361EXPORT_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