Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
nubus.h File Reference
#include <asm/nubus.h>
#include <uapi/linux/nubus.h>

Go to the source code of this file.

Data Structures

struct  nubus_board
 
struct  nubus_dev
 

Functions

void nubus_scan_bus (void)
 
void nubus_proc_init (void)
 
int get_nubus_list (char *buf)
 
int nubus_proc_attach_device (struct nubus_dev *dev)
 
int nubus_proc_detach_device (struct nubus_dev *dev)
 
struct nubus_devnubus_find_device (unsigned short category, unsigned short type, unsigned short dr_hw, unsigned short dr_sw, const struct nubus_dev *from)
 
struct nubus_devnubus_find_type (unsigned short category, unsigned short type, const struct nubus_dev *from)
 
struct nubus_devnubus_find_slot (unsigned int slot, const struct nubus_dev *from)
 
int nubus_get_root_dir (const struct nubus_board *board, struct nubus_dir *dir)
 
int nubus_get_board_dir (const struct nubus_board *board, struct nubus_dir *dir)
 
int nubus_get_func_dir (const struct nubus_dev *dev, struct nubus_dir *dir)
 
int nubus_readdir (struct nubus_dir *dir, struct nubus_dirent *ent)
 
int nubus_find_rsrc (struct nubus_dir *dir, unsigned char rsrc_type, struct nubus_dirent *ent)
 
int nubus_rewinddir (struct nubus_dir *dir)
 
int nubus_get_subdir (const struct nubus_dirent *ent, struct nubus_dir *dir)
 
void nubus_get_rsrc_mem (void *dest, const struct nubus_dirent *dirent, int len)
 
void nubus_get_rsrc_str (void *dest, const struct nubus_dirent *dirent, int maxlen)
 

Variables

struct nubus_devnubus_devices
 
struct nubus_boardnubus_boards
 

Function Documentation

int get_nubus_list ( char buf)
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  maxlen 
)

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.

int nubus_proc_attach_device ( struct nubus_dev dev)

Definition at line 113 of file proc.c.

int nubus_proc_detach_device ( struct nubus_dev dev)

Definition at line 147 of file proc.c.

void nubus_proc_init ( void  )

Definition at line 169 of file proc.c.

int nubus_readdir ( struct nubus_dir dir,
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 nubus_scan_bus ( void  )

Definition at line 1007 of file nubus.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.