?? cf.h
字號:
/* CF CARD interface for Linux on Atmel AT91RM9200 * Copyright (c) 2006 Ligang Wang * wangzitan@163.com */#ifndef _CF_H_#define _CF_H_/* define some macro for this module*/#define MAX_DEV_NUM 5 //Max number of 8255 device#define DEV_MEM_SIZE 1024 //define memory size for device#define DEV_MAJOR 251 //major of 8255a#define CF_ADDR_ATTR_BASE 0x50000000
#define CF_ADDR_IO_BASE 0x50800000
#define CF_ADDR_MEM_BASE 0x50400000#define CF_IOREMAP_SIZE 0x1024#define AT91C_CF_PC5_CD1 AT91C_PIO_PC5 /* Compact Flash port pin aliases */#define AT91C_CF_PC5_CD2 AT91C_PIO_PC5#define AT91C_CF_PB20_IOIS16 AT91C_PIO_PB20 /* The access type (8 [high] or 16-bit [low]) is based on the state of the -IOIS16 signal */ //WP?#define AT91C_CF_PB18_STSCHG AT91C_PIO_PB18#define AT91C_CF_PB21_RDY AT91C_PIO_PB21#define AT91C_CF_PB5_RESET AT91C_PIO_PB5#define AT91C_CF_PB6_ENABLE AT91C_PIO_PB6#define CF_STATUS (*((char *)(card_info.cf_addr_io_base + 7)))typedef struct _cf_information{ void * cf_addr_attrib_base; void * cf_addr_io_base; void * cf_addr_mem_base; int is_insert; int is_ready; char * cahce1; char * cache2;} cf_information;#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -