Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/cx/if_cx.c
Context not available. | |||||
static char dmatab [] = { 7, 6, 5, 0 }; | static char dmatab [] = { 7, 6, 5, 0 }; | ||||
static char irqtab [] = { 5, 10, 11, 7, 3, 15, 12, 0 }; | static char irqtab [] = { 5, 10, 11, 7, 3, 15, 12, 0 }; | ||||
static int cx_is_free_res (device_t dev, int rid, int type, u_long start, | static int cx_is_free_res (device_t dev, int rid, int type, rman_res_t start, | ||||
u_long end, u_long count) | rman_res_t end, rman_res_t count) | ||||
{ | { | ||||
struct resource *res; | struct resource *res; | ||||
Context not available. | |||||
static void cx_identify (driver_t *driver, device_t dev) | static void cx_identify (driver_t *driver, device_t dev) | ||||
{ | { | ||||
u_long iobase, rescount; | rman_res_t iobase, rescount; | ||||
int devcount; | int devcount; | ||||
device_t *devices; | device_t *devices; | ||||
device_t child; | device_t child; | ||||
Context not available. | |||||
{ | { | ||||
int unit = device_get_unit (dev); | int unit = device_get_unit (dev); | ||||
int i; | int i; | ||||
u_long iobase, rescount; | rman_res_t iobase, rescount; | ||||
if (!device_get_desc (dev) || | if (!device_get_desc (dev) || | ||||
strcmp (device_get_desc (dev), "Cronyx Sigma")) | strcmp (device_get_desc (dev), "Cronyx Sigma")) | ||||
Context not available. | |||||
static int cx_attach (device_t dev) | static int cx_attach (device_t dev) | ||||
{ | { | ||||
bdrv_t *bd = device_get_softc (dev); | bdrv_t *bd = device_get_softc (dev); | ||||
u_long iobase, drq, irq, rescount; | rman_res_t iobase, drq, irq, rescount; | ||||
int unit = device_get_unit (dev); | int unit = device_get_unit (dev); | ||||
char *cx_ln = CX_LOCK_NAME; | char *cx_ln = CX_LOCK_NAME; | ||||
cx_board_t *b; | cx_board_t *b; | ||||
Context not available. |