Update of /cvsroot/blob/blob/include/blob
In directory usw-pr-cvs1:/tmp/cvs-serv19713
Modified Files:
ide.h pcmcia.h
Log Message:
- added debuglevels, attribute space register read/write, config reg offset
get function, corrected socket 1 memory space phys. address.
Index: ide.h
===================================================================
RCS file: /cvsroot/blob/blob/include/blob/ide.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- ide.h 21 Apr 2002 10:31:14 -0000 1.1
+++ ide.h 24 Apr 2002 14:29:03 -0000 1.2
@@ -138,7 +138,9 @@
u8 last_status;
} ide_drive_t;
-int ide_init( ide_drive_t *drive, u32 *base_addr );
+void ide_dbg_set( int level );
+
+int ide_init( ide_drive_t *drive, u32 base_addr );
int ide_status_dump( ide_drive_t *drive );
Index: pcmcia.h
===================================================================
RCS file: /cvsroot/blob/blob/include/blob/pcmcia.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- pcmcia.h 21 Apr 2002 10:31:14 -0000 1.1
+++ pcmcia.h 24 Apr 2002 14:29:03 -0000 1.2
@@ -59,7 +59,7 @@
#if defined(PT_SYSTEM3)
# define PCMCIA_S0_BASE 0x20000000
# define PCMCIA_S0_ATTR_BASE 0x28000000
-# define PCMCIA_S1_BASE 0x3c000000
+# define PCMCIA_S1_BASE 0x30000000
# define PCMCIA_S1_ATTR_BASE 0x38000000
#else
# error "Please add PCMCIA HW defines for your board here"
@@ -109,5 +109,12 @@
int pcmcia_cis_parse( int slot );
/* get base adress and attribute space address of slot <slot> */
-int pcmcia_slot_address_get( int slot, u32 **base, u32 **attr );
+int pcmcia_slot_address_get( int slot, u32 *base, u32 *attr );
+
+/* get config register */
+int pcmcia_slot_cfg_reg_get( int slot, u16 *cfg_base );
+
+/* read/write attribute space */
+int pcmcia_slot_attr_read( int slot, u16 offset, u8 *value );
+int pcmcia_slot_attr_write( int slot, u16 offset, u8 value );
#endif
|