changeset 1707:8ed9b826a6e1

add some defines to pcmcia.h
author msalter
date Wed, 11 Aug 2004 15:43:10 +0000
parents 2ac00a39c666
children 8a30969d516b
files packages/io/pcmcia/current/ChangeLog packages/io/pcmcia/current/include/pcmcia.h
diffstat 2 files changed, 26 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/packages/io/pcmcia/current/ChangeLog
+++ b/packages/io/pcmcia/current/ChangeLog
@@ -1,3 +1,7 @@
+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.
@@ -39,7 +43,7 @@ 2000-07-11  Gary Thomas  <gthomas@redhat
 //####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
--- a/packages/io/pcmcia/current/include/pcmcia.h
+++ b/packages/io/pcmcia/current/include/pcmcia.h
@@ -10,7 +10,7 @@
 //####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
@@ -92,6 +92,26 @@ struct cf_slot {
 #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