?? w83977.h
字號:
/*************************************************
* *w83977tf head file
*************************************************/
#ifndef __W83977TF_H__
#define __W83977TF_H__
#define nGCS7 0x38000000
#define W977_EFIO_BASE 0x370
#define W977_EFIO2_BASE 0x3f0
//logic device index
#define W977_DEVICE_PARPORT 0x01
#define W977_DEVICE_UARTA 0x02
#define W977_DEVICE_UARTB 0x03
#define W977_DEVICE_KBC 0x05
#define W977_DEVICE_IR 0x06
#define W977_DEVICE_GP14 0x07
//io port
//KBD
#define I8042_DATA_REG 0x60
#define I8042_STATUS_REG 0x64
#define I8042_COMMAND_REG 0x64
//serial port
#define TTYS0_BASE 0x3f8
#define TTYS1_BASE 0x2f8
//parall port
#define PARPORT_IO_BASE 0x378
//GPIO GP14
#define GPIO14_IO_BASE 0x200
//for UART
#define UART_RBR 0x00
#define UART_TBR 0x00
#define UART_IER 0x01
#define UART_IIR 0x02
#define UART_FCR 0x02
#define UART_LCR 0x03
#define UART_MCR 0x04
#define UART_DLL 0x00
#define UART_DLM 0x01
#define UART_LSR 0x05
#define UART_MSR 0x06
#define UART_SCR 0x07
void init_w83977(void);
#endif //__W83977TF_H__
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -