1cf46c42d7
1. remove __REG macro 2. add (void __iomem *) to io_p2v macro 3. add (phys_addr_t) to io_v2p macro 4. add PKUNITY_AHB_BASE and PKUNITY_APB_BASE definitions 5. modify all PKUNITY_mmio_BASEs from physical addr to virtual addr 6. adjust prefix macro for all usage of PKUNITY_mmio_BASEs -- by advice with Arnd Bergmann Signed-off-by: Guan Xuetao <gxt@mprc.pku.edu.cn> Reviewed-by: Arnd Bergmann <arnd@arndb.de>
20 lines
407 B
C
20 lines
407 B
C
/*
|
|
* PKUnity PS2 Controller Registers
|
|
*/
|
|
/*
|
|
* the same as I8042_DATA_REG PS2_DATA
|
|
*/
|
|
#define PS2_DATA (PKUNITY_PS2_BASE + 0x0060)
|
|
/*
|
|
* the same as I8042_COMMAND_REG PS2_COMMAND
|
|
*/
|
|
#define PS2_COMMAND (PKUNITY_PS2_BASE + 0x0064)
|
|
/*
|
|
* the same as I8042_STATUS_REG PS2_STATUS
|
|
*/
|
|
#define PS2_STATUS (PKUNITY_PS2_BASE + 0x0064)
|
|
/*
|
|
* counter reg PS2_CNT
|
|
*/
|
|
#define PS2_CNT (PKUNITY_PS2_BASE + 0x0068)
|
|
|