diff options
| author | Roman Divacky <rdivacky@FreeBSD.org> | 2009-02-24 18:09:31 +0000 |
|---|---|---|
| committer | Roman Divacky <rdivacky@FreeBSD.org> | 2009-02-24 18:09:31 +0000 |
| commit | af83f5d77cb79c3e282dec7769ded18293d3970a (patch) | |
| tree | 5b25b63fa72c76fa803c05da612b120833bed4dd /sys/dev/mca | |
| parent | dfb175c5303b5884f0bd885ca5165de8dba90085 (diff) | |
Notes
Diffstat (limited to 'sys/dev/mca')
| -rw-r--r-- | sys/dev/mca/mca_bus.c | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/sys/dev/mca/mca_bus.c b/sys/dev/mca/mca_bus.c index efa70d29b8a6d..bc3c0e52b5ab9 100644 --- a/sys/dev/mca/mca_bus.c +++ b/sys/dev/mca/mca_bus.c @@ -68,10 +68,7 @@ struct mca_device { /* Not supposed to use this function! */ void -mca_pos_set (dev, reg, data) - device_t dev; - u_int8_t reg; - u_int8_t data; +mca_pos_set (device_t dev, u_int8_t reg, u_int8_t data) { struct mca_device * m_dev = device_get_ivars(dev); u_int8_t slot = mca_get_slot(dev); @@ -98,9 +95,7 @@ mca_pos_set (dev, reg, data) } u_int8_t -mca_pos_get (dev, reg) - device_t dev; - u_int8_t reg; +mca_pos_get (device_t dev, u_int8_t reg) { u_int8_t slot = mca_get_slot(dev); u_int8_t data = 0; @@ -158,9 +153,7 @@ mca_pos_get (dev, reg) } const char * -mca_match_id (id, mca_devs) - u_int16_t id; - struct mca_ident * mca_devs; +mca_match_id (u_int16_t id, struct mca_ident *mca_devs) { struct mca_ident * m = mca_devs; while(m->name != NULL) { @@ -172,9 +165,7 @@ mca_match_id (id, mca_devs) } u_int8_t -mca_pos_read (dev, reg) - device_t dev; - u_int8_t reg; +mca_pos_read (device_t dev, u_int8_t reg) { struct mca_device * m_dev = device_get_ivars(dev); |
