Changeset da74747 in mainline for kernel/arch/sparc64/include/drivers/z8530.h
- Timestamp:
- 2006-08-09T12:24:58Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 287920f
- Parents:
- e2882a7
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/include/drivers/z8530.h
re2882a7 rda74747 33 33 */ 34 34 35 #ifndef KERN_sparc64_ I8042_H_36 #define KERN_sparc64_ I8042_H_35 #ifndef KERN_sparc64_Z8530_H_ 36 #define KERN_sparc64_Z8530_H_ 37 37 38 38 #include <arch/types.h> … … 46 46 extern volatile uint8_t *kbd_virt_address; 47 47 48 static inline void i8042_data_write(uint8_t data)48 static inline void z8530_data_write(uint8_t data) 49 49 { 50 50 kbd_virt_address[DATA_REG] = data; 51 51 } 52 52 53 static inline uint8_t i8042_data_read(void)53 static inline uint8_t z8530_data_read(void) 54 54 { 55 55 return kbd_virt_address[DATA_REG]; 56 56 } 57 57 58 static inline uint8_t i8042_status_read(void)58 static inline uint8_t z8530_status_read(void) 59 59 { 60 60 return kbd_virt_address[STATUS_REG]; 61 61 } 62 62 63 static inline void i8042_command_write(uint8_t command)63 static inline void z8530_command_write(uint8_t command) 64 64 { 65 65 kbd_virt_address[COMMAND_REG] = command;
Note:
See TracChangeset
for help on using the changeset viewer.