This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

pcmcia.h tweak


Index: ecos/packages/io/pcmcia/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/io/pcmcia/current/ChangeLog,v
retrieving revision 1.6
diff -u -p -5 -r1.6 ChangeLog
--- ecos/packages/io/pcmcia/current/ChangeLog	24 Feb 2003 14:25:03 -0000	1.6
+++ ecos/packages/io/pcmcia/current/ChangeLog	11 Aug 2004 15:38:02 -0000
@@ -1,5 +1,9 @@
+2004-08-11  Mark Salter  <msalter@redhat.com>
+
+	* include/pcmcia.h: Add some useful defines.
+
 2003-02-24  Jonathan Larmour  <jifl@eCosCentric.com>
 
 	* cdl/io_pcmcia.cdl: Fix doc link.
 
 2002-04-12  Gary Thomas  <gthomas@redhat.com>
@@ -37,11 +41,11 @@
 
 //===========================================================================
 //####ECOSGPLCOPYRIGHTBEGIN####
 // -------------------------------------------
 // This file is part of eCos, the Embedded Configurable Operating System.
-// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
+// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2004 Red Hat, Inc.
 //
 // eCos is free software; you can redistribute it and/or modify it under
 // the terms of the GNU General Public License as published by the Free
 // Software Foundation; either version 2 or (at your option) any later version.
 //
Index: ecos/packages/io/pcmcia/current/include/pcmcia.h
===================================================================
RCS file: /cvs/ecos/ecos/packages/io/pcmcia/current/include/pcmcia.h,v
retrieving revision 1.5
diff -u -p -5 -r1.5 pcmcia.h
--- ecos/packages/io/pcmcia/current/include/pcmcia.h	23 May 2002 23:06:22 -0000	1.5
+++ ecos/packages/io/pcmcia/current/include/pcmcia.h	11 Aug 2004 15:38:02 -0000
@@ -8,11 +8,11 @@
 //
 // ====================================================================
 //####ECOSGPLCOPYRIGHTBEGIN####
 // -------------------------------------------
 // This file is part of eCos, the Embedded Configurable Operating System.
-// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
+// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2004 Red Hat, Inc.
 //
 // eCos is free software; you can redistribute it and/or modify it under
 // the terms of the GNU General Public License as published by the Free
 // Software Foundation; either version 2 or (at your option) any later version.
 //
@@ -90,10 +90,30 @@ struct cf_slot {
 #define CF_CISTPL_CONFIG        0x1A
 #define CF_CISTPL_CFTABLE_ENTRY 0x1B
 #define CF_CISTPL_MANFID        0x20
 #define CF_CISTPL_FUNCID        0x21
 
+// Configuration register offsets
+#define CF_CONFIG_COR           0x00
+#define CF_CONFIG_CCSR          0x02
+#define CF_CONFIG_PRR           0x04
+#define CF_CONFIG_SCR           0x06
+#define CF_CONFIG_ESR           0x08
+#define CF_CONFIG_IOBASE_0      0x0a
+#define CF_CONFIG_IOBASE_1      0x0c
+#define CF_CONFIG_IOBASE_2      0x0e
+#define CF_CONFIG_IOBASE_3      0x10
+#define CF_CONFIG_IOSIZE        0x12
+
+// Configuration Option Register bits
+#define CF_COR_FUNC_ENA         0x01
+#define CF_COR_ADDR_DECODE      0x02
+#define CF_COR_IREQ_ENA         0x04
+#define CF_COR_LEVEL_REQ        0x40
+#define CF_COR_SOFT_RESET       0x80
+
+
 #define CF_MAX_IO_ADDRS      8
 struct cf_io_space {    
     unsigned long base[CF_MAX_IO_ADDRS];     // Base address of I/O registers
     unsigned long size[CF_MAX_IO_ADDRS];     // Length(-1) of I/O registers
     int           num_addrs;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]