Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
nubus.c File Reference
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/nubus.h>
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <asm/setup.h>
#include <asm/page.h>
#include <asm/hwtest.h>
#include <linux/proc_fs.h>
#include <asm/mac_via.h>
#include <asm/mac_oss.h>

Go to the source code of this file.

Macros

#define FORMAT_BLOCK_SIZE   20
 
#define ROM_DIR_OFFSET   0x24
 
#define NUBUS_TEST_PATTERN   0x5A932BC7
 

Functions

void via_nubus_init (void)
 
void oss_nubus_init (void)
 
void nubus_get_rsrc_mem (void *dest, const struct nubus_dirent *dirent, int len)
 
 EXPORT_SYMBOL (nubus_get_rsrc_mem)
 
void nubus_get_rsrc_str (void *dest, const struct nubus_dirent *dirent, int len)
 
 EXPORT_SYMBOL (nubus_get_rsrc_str)
 
int nubus_get_root_dir (const struct nubus_board *board, struct nubus_dir *dir)
 
 EXPORT_SYMBOL (nubus_get_root_dir)
 
int nubus_get_func_dir (const struct nubus_dev *dev, struct nubus_dir *dir)
 
 EXPORT_SYMBOL (nubus_get_func_dir)
 
int nubus_get_board_dir (const struct nubus_board *board, struct nubus_dir *dir)
 
 EXPORT_SYMBOL (nubus_get_board_dir)
 
int nubus_get_subdir (const struct nubus_dirent *ent, struct nubus_dir *dir)
 
 EXPORT_SYMBOL (nubus_get_subdir)
 
int nubus_readdir (struct nubus_dir *nd, struct nubus_dirent *ent)
 
 EXPORT_SYMBOL (nubus_readdir)
 
int nubus_rewinddir (struct nubus_dir *dir)
 
 EXPORT_SYMBOL (nubus_rewinddir)
 
struct nubus_devnubus_find_device (unsigned short category, unsigned short type, unsigned short dr_hw, unsigned short dr_sw, const struct nubus_dev *from)
 
 EXPORT_SYMBOL (nubus_find_device)
 
struct nubus_devnubus_find_type (unsigned short category, unsigned short type, const struct nubus_dev *from)
 
 EXPORT_SYMBOL (nubus_find_type)
 
struct nubus_devnubus_find_slot (unsigned int slot, const struct nubus_dev *from)
 
 EXPORT_SYMBOL (nubus_find_slot)
 
int nubus_find_rsrc (struct nubus_dir *dir, unsigned char rsrc_type, struct nubus_dirent *ent)
 
 EXPORT_SYMBOL (nubus_find_rsrc)
 
void __init nubus_probe_slot (int slot)
 
void __init nubus_scan_bus (void)
 
 subsys_initcall (nubus_init)
 

Variables

struct nubus_devnubus_devices
 
struct nubus_boardnubus_boards
 

Macro Definition Documentation

#define FORMAT_BLOCK_SIZE   20

Definition at line 33 of file nubus.c.

#define NUBUS_TEST_PATTERN   0x5A932BC7

Definition at line 36 of file nubus.c.

#define ROM_DIR_OFFSET   0x24

Definition at line 34 of file nubus.c.

Function Documentation

EXPORT_SYMBOL ( nubus_get_rsrc_mem  )
EXPORT_SYMBOL ( nubus_get_rsrc_str  )
EXPORT_SYMBOL ( nubus_get_root_dir  )
EXPORT_SYMBOL ( nubus_get_func_dir  )
EXPORT_SYMBOL ( nubus_get_board_dir  )
EXPORT_SYMBOL ( nubus_get_subdir  )
EXPORT_SYMBOL ( nubus_readdir  )
EXPORT_SYMBOL ( nubus_rewinddir  )
EXPORT_SYMBOL ( nubus_find_device  )
EXPORT_SYMBOL ( nubus_find_type  )
EXPORT_SYMBOL ( nubus_find_slot  )
EXPORT_SYMBOL ( nubus_find_rsrc  )
struct nubus_dev* nubus_find_device ( unsigned short  category,
unsigned short  type,
unsigned short  dr_hw,
unsigned short  dr_sw,
const struct nubus_dev from 
)
read

Definition at line 296 of file nubus.c.

int nubus_find_rsrc ( struct nubus_dir dir,
unsigned char  rsrc_type,
struct nubus_dirent ent 
)

Definition at line 352 of file nubus.c.

struct nubus_dev* nubus_find_slot ( unsigned int  slot,
const struct nubus_dev from 
)
read

Definition at line 336 of file nubus.c.

struct nubus_dev* nubus_find_type ( unsigned short  category,
unsigned short  type,
const struct nubus_dev from 
)
read

Definition at line 318 of file nubus.c.

int nubus_get_board_dir ( const struct nubus_board board,
struct nubus_dir dir 
)

Definition at line 228 of file nubus.c.

int nubus_get_func_dir ( const struct nubus_dev dev,
struct nubus_dir dir 
)

Definition at line 218 of file nubus.c.

int nubus_get_root_dir ( const struct nubus_board board,
struct nubus_dir dir 
)

Definition at line 207 of file nubus.c.

void nubus_get_rsrc_mem ( void dest,
const struct nubus_dirent dirent,
int  len 
)

Definition at line 179 of file nubus.c.

void nubus_get_rsrc_str ( void dest,
const struct nubus_dirent dirent,
int  len 
)

Definition at line 192 of file nubus.c.

int nubus_get_subdir ( const struct nubus_dirent ent,
struct nubus_dir dir 
)

Definition at line 247 of file nubus.c.

void __init nubus_probe_slot ( int  slot)

Definition at line 915 of file nubus.c.

int nubus_readdir ( struct nubus_dir nd,
struct nubus_dirent ent 
)

Definition at line 257 of file nubus.c.

int nubus_rewinddir ( struct nubus_dir dir)

Definition at line 286 of file nubus.c.

void __init nubus_scan_bus ( void  )

Definition at line 1007 of file nubus.c.

void oss_nubus_init ( void  )

Definition at line 60 of file oss.c.

subsys_initcall ( nubus_init  )
void via_nubus_init ( void  )

Definition at line 377 of file via.c.

Variable Documentation

struct nubus_board* nubus_boards

Definition at line 49 of file nubus.c.

struct nubus_dev* nubus_devices

Definition at line 48 of file nubus.c.