diff options
author | Wolfgang Denk <wd@pollux.denx.de> | 2006-07-10 23:07:28 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@pollux.denx.de> | 2006-07-10 23:07:28 +0200 |
commit | 9d407995516bfcd401b76de0c11e679fb3871c79 (patch) | |
tree | dae126efb15ae0a160bd1b3f0b18ad2735c6c015 /include | |
parent | a874c8c65f57ecfbb8c7961525ac4376b6fbab8b (diff) | |
download | u-boot-imx-9d407995516bfcd401b76de0c11e679fb3871c79.zip u-boot-imx-9d407995516bfcd401b76de0c11e679fb3871c79.tar.gz u-boot-imx-9d407995516bfcd401b76de0c11e679fb3871c79.tar.bz2 |
Major PCMCIA Cleanup to make code better readable and maintainable.
Notes:
- Board-dependend code for RPXLITE and RPXCLASSIC-based boards
placed to the drivers/rpx_pmcia.c file to avoid duplication.
Same for TQM8xx-based boards (drivers/tqm8xx_pmcia.c).
- drivers/i82365.c has been split into two parts located at
board/atc/ti113x.c and board/cpc45/pd67290.c (ATC and CPC45 are
the only boards using CONFIG_82365).
- Changes were tested for clean build and *very* *few* boards.
Diffstat (limited to 'include')
-rw-r--r-- | include/pcmcia.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/pcmcia.h b/include/pcmcia.h index 43d4510..8f564da 100644 --- a/include/pcmcia.h +++ b/include/pcmcia.h @@ -308,4 +308,14 @@ typedef struct { #endif /* CFG_CMD_PCMCIA || CFG_CMD_IDE && (CONFIG_IDE_8xx_PCCARD || CONFIG_IDE_8xx_DIRECT) */ +#ifdef CONFIG_8xx +extern u_int *pcmcia_pgcrx[]; +#define PCMCIA_PGCRX(slot) (*pcmcia_pgcrx[slot]) +#endif + +#if (CONFIG_COMMANDS & CFG_CMD_IDE) && defined(CONFIG_IDE_8xx_PCCARD) \ + || defined(CONFIG_PXA_PCMCIA) +extern int check_ide_device(int slot); +#endif + #endif /* _PCMCIA_H */ |