summaryrefslogtreecommitdiffstats
path: root/package/libertas/src/if_sdio.h
diff options
context:
space:
mode:
authorryd <ryd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-12-15 19:59:21 +0000
committerryd <ryd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-12-15 19:59:21 +0000
commit7a4bdab85080df3e4a39ed3cf6d7e5ee325a26d2 (patch)
treea49d4db44f0bf8b2497d1450ef5507605fde6c7a /package/libertas/src/if_sdio.h
parentc7c0768dc837f9f8cc0eb7b876ba8255c4a9b55d (diff)
* adding network config for olpc
* adding libertas * config issue * quiet mode for bootloader git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9768 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/libertas/src/if_sdio.h')
-rw-r--r--package/libertas/src/if_sdio.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/package/libertas/src/if_sdio.h b/package/libertas/src/if_sdio.h
new file mode 100644
index 000000000..533bdfbf5
--- /dev/null
+++ b/package/libertas/src/if_sdio.h
@@ -0,0 +1,45 @@
+/*
+ * linux/drivers/net/wireless/libertas/if_sdio.h
+ *
+ * Copyright 2007 Pierre Ossman
+ *
+ * This program 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 of the License, or (at
+ * your option) any later version.
+ */
+
+#ifndef _LBS_IF_SDIO_H
+#define _LBS_IF_SDIO_H
+
+#define IF_SDIO_IOPORT 0x00
+
+#define IF_SDIO_H_INT_MASK 0x04
+#define IF_SDIO_H_INT_OFLOW 0x08
+#define IF_SDIO_H_INT_UFLOW 0x04
+#define IF_SDIO_H_INT_DNLD 0x02
+#define IF_SDIO_H_INT_UPLD 0x01
+
+#define IF_SDIO_H_INT_STATUS 0x05
+#define IF_SDIO_H_INT_RSR 0x06
+#define IF_SDIO_H_INT_STATUS2 0x07
+
+#define IF_SDIO_RD_BASE 0x10
+
+#define IF_SDIO_STATUS 0x20
+#define IF_SDIO_IO_RDY 0x08
+#define IF_SDIO_CIS_RDY 0x04
+#define IF_SDIO_UL_RDY 0x02
+#define IF_SDIO_DL_RDY 0x01
+
+#define IF_SDIO_C_INT_MASK 0x24
+#define IF_SDIO_C_INT_STATUS 0x28
+#define IF_SDIO_C_INT_RSR 0x2C
+
+#define IF_SDIO_SCRATCH 0x34
+#define IF_SDIO_SCRATCH_OLD 0x80fe
+#define IF_SDIO_FIRMWARE_OK 0xfedc
+
+#define IF_SDIO_EVENT 0x80fc
+
+#endif