mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
Map the second CS of the compact flash too. This allow us access to
the alternate status and the control registers. Remove the local version of ata_reset. Add support for the ADI Pronghorn Metro boards. They use CS3 and CS4 instead of Avila's CS1 and CS2.
This commit is contained in:
parent
6dabf85649
commit
142f4ed4b1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=167570
@ -86,6 +86,13 @@ static struct {
|
||||
/* Gateworks Avila IDE/CF is mapped here */
|
||||
{ IXP425_EXP_BUS_CS1_HWBASE, IXP425_EXP_BUS_SIZE,
|
||||
IXP425_EXP_BUS_CS1_VBASE },
|
||||
{ IXP425_EXP_BUS_CS2_HWBASE, IXP425_EXP_BUS_SIZE,
|
||||
IXP425_EXP_BUS_CS2_VBASE },
|
||||
/* ADI Pronghorn Metro IDE/CF is mapped here */
|
||||
{ IXP425_EXP_BUS_CS3_HWBASE, IXP425_EXP_BUS_SIZE,
|
||||
IXP425_EXP_BUS_CS3_VBASE },
|
||||
{ IXP425_EXP_BUS_CS4_HWBASE, IXP425_EXP_BUS_SIZE,
|
||||
IXP425_EXP_BUS_CS4_VBASE },
|
||||
};
|
||||
|
||||
static int
|
||||
|
@ -566,15 +566,24 @@
|
||||
#define IXP425_EXP_BUS_CSx_HWBASE(i) \
|
||||
(IXP425_EXP_BUS_HWBASE + (i)*IXP425_EXP_BUS_SIZE)
|
||||
|
||||
#define IXP425_EXP_BUS_CSx_VBASE(i) \
|
||||
(IXP425_MAC_B_VBASE + (i)*IXP425_MAC_B_SIZE)
|
||||
|
||||
#define IXP425_EXP_BUS_CS1_HWBASE IXP425_EXP_BUS_CSx_HWBASE(1)
|
||||
#define IXP425_EXP_BUS_CS1_VBASE (IXP425_MAC_B_VBASE + IXP425_MAC_B_SIZE)
|
||||
#define IXP425_EXP_BUS_CS1_VBASE IXP425_EXP_BUS_CSx_VBASE(1)
|
||||
#define IXP425_EXP_BUS_CS1_SIZE 0x1000
|
||||
#define IXP425_EXP_BUS_CS2_HWBASE IXP425_EXP_BUS_CSx_HWBASE(2)
|
||||
#define IXP425_EXP_BUS_CS2_VBASE IXP425_EXP_BUS_CSx_VBASE(2)
|
||||
#define IXP425_EXP_BUS_CS2_SIZE 0x1000
|
||||
#define IXP425_EXP_BUS_CS3_HWBASE IXP425_EXP_BUS_CSx_HWBASE(3)
|
||||
#define IXP425_EXP_BUS_CS3_VBASE IXP425_EXP_BUS_CSx_VBASE(3)
|
||||
#define IXP425_EXP_BUS_CS3_SIZE 0x1000
|
||||
#define IXP425_EXP_BUS_CS4_HWBASE IXP425_EXP_BUS_CSx_HWBASE(4)
|
||||
#define IXP425_EXP_BUS_CS4_VBASE IXP425_EXP_BUS_CSx_VBASE(4)
|
||||
#define IXP425_EXP_BUS_CS4_SIZE 0x1000
|
||||
|
||||
/* NB: not mapped (yet) */
|
||||
#define IXP425_EXP_BUS_CS0_HWBASE IXP425_EXP_BUS_CSx_HWBASE(0)
|
||||
#define IXP425_EXP_BUS_CS2_HWBASE IXP425_EXP_BUS_CSx_HWBASE(2)
|
||||
#define IXP425_EXP_BUS_CS3_HWBASE IXP425_EXP_BUS_CSx_HWBASE(3)
|
||||
#define IXP425_EXP_BUS_CS4_HWBASE IXP425_EXP_BUS_CSx_HWBASE(4)
|
||||
#define IXP425_EXP_BUS_CS5_HWBASE IXP425_EXP_BUS_CSx_HWBASE(5)
|
||||
#define IXP425_EXP_BUS_CS6_HWBASE IXP425_EXP_BUS_CSx_HWBASE(6)
|
||||
#define IXP425_EXP_BUS_CS7_HWBASE IXP425_EXP_BUS_CSx_HWBASE(7)
|
||||
|
Loading…
Reference in New Issue
Block a user