Changeset 7f1669f in mainline
- Timestamp:
- 2011-12-09T16:31:07Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 78aa0ab
- Parents:
- 38ec02e
- Location:
- uspace/drv/char/i8042
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/char/i8042/i8042.c
r38ec02e r7f1669f 108 108 static uintptr_t i8042_physical; 109 109 static uintptr_t i8042_kernel; 110 static i8042_ t * i8042;110 static i8042_regs_t * i8042; 111 111 112 112 static i8042_port_t i8042_port[MAX_DEVS]; … … 169 169 170 170 void *vaddr; 171 if (pio_enable((void *) i8042_physical, sizeof(i8042_ t), &vaddr) != 0)171 if (pio_enable((void *) i8042_physical, sizeof(i8042_regs_t), &vaddr) != 0) 172 172 return -1; 173 173 … … 195 195 (void) pio_read_8(&i8042->data); 196 196 197 i8042_kbd.cmds[0].addr = (void *) &((i8042_ t *) i8042_kernel)->status;198 i8042_kbd.cmds[3].addr = (void *) &((i8042_ t *) i8042_kernel)->data;197 i8042_kbd.cmds[0].addr = (void *) &((i8042_regs_t *) i8042_kernel)->status; 198 i8042_kbd.cmds[3].addr = (void *) &((i8042_regs_t *) i8042_kernel)->data; 199 199 register_irq(inr_a, device_assign_devno(), 0, &i8042_kbd); 200 200 register_irq(inr_b, device_assign_devno(), 0, &i8042_kbd); -
uspace/drv/char/i8042/i8042.h
r38ec02e r7f1669f 44 44 45 45 /** i8042 HW I/O interface */ 46 struct i8042{46 typedef struct { 47 47 ioport8_t data; 48 48 uint8_t pad[3]; 49 49 ioport8_t status; 50 } __attribute__ ((packed)); 51 typedef struct i8042 i8042_t; 50 } __attribute__ ((packed)) i8042_regs_t; 52 51 53 52 /** Softstate structure, one for each serial port (primary and aux). */
Note:
See TracChangeset
for help on using the changeset viewer.