Changeset View
Changeset View
Standalone View
Standalone View
stand/libsa/stand.h
Show First 20 Lines • Show All 155 Lines • ▼ Show 20 Lines | int (*dv_strategy)(void *devdata, int rw, daddr_t blk, | ||||
size_t size, char *buf, size_t *rsize); | size_t size, char *buf, size_t *rsize); | ||||
int (*dv_open)(struct open_file *f, ...); | int (*dv_open)(struct open_file *f, ...); | ||||
int (*dv_close)(struct open_file *f); | int (*dv_close)(struct open_file *f); | ||||
int (*dv_ioctl)(struct open_file *f, u_long cmd, void *data); | int (*dv_ioctl)(struct open_file *f, u_long cmd, void *data); | ||||
int (*dv_print)(int verbose); /* print device information */ | int (*dv_print)(int verbose); /* print device information */ | ||||
void (*dv_cleanup)(void); | void (*dv_cleanup)(void); | ||||
char * (*dv_fmtdev)(struct devdesc *); | char * (*dv_fmtdev)(struct devdesc *); | ||||
int (*dv_parsedev)(struct devdesc **, const char *, const char **); | int (*dv_parsedev)(struct devdesc **, const char *, const char **); | ||||
bool (*dv_match)(struct devsw *, const char *); | |||||
}; | }; | ||||
/* | /* | ||||
* libsa-supplied device switch | * libsa-supplied device switch | ||||
*/ | */ | ||||
extern struct devsw netdev; | extern struct devsw netdev; | ||||
extern int errno; | extern int errno; | ||||
▲ Show 20 Lines • Show All 339 Lines • Show Last 20 Lines |