Pierre Ossman | 727c26e | 2007-10-17 22:24:24 +0200 | [diff] [blame] | 1 | /* |
| 2 | * linux/drivers/net/wireless/libertas/if_sdio.h |
| 3 | * |
| 4 | * Copyright 2007 Pierre Ossman |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by |
| 8 | * the Free Software Foundation; either version 2 of the License, or (at |
| 9 | * your option) any later version. |
| 10 | */ |
| 11 | |
Holger Schurig | 1007832 | 2007-11-15 18:05:47 -0500 | [diff] [blame] | 12 | #ifndef _LBS_IF_SDIO_H |
| 13 | #define _LBS_IF_SDIO_H |
Pierre Ossman | 727c26e | 2007-10-17 22:24:24 +0200 | [diff] [blame] | 14 | |
Bing Zhao | e70a5ac | 2009-05-19 19:48:18 -0700 | [diff] [blame] | 15 | #define IF_SDIO_MODEL_8385 0x04 |
| 16 | #define IF_SDIO_MODEL_8686 0x0b |
| 17 | #define IF_SDIO_MODEL_8688 0x10 |
| 18 | |
Pierre Ossman | 727c26e | 2007-10-17 22:24:24 +0200 | [diff] [blame] | 19 | #define IF_SDIO_IOPORT 0x00 |
| 20 | |
| 21 | #define IF_SDIO_H_INT_MASK 0x04 |
| 22 | #define IF_SDIO_H_INT_OFLOW 0x08 |
| 23 | #define IF_SDIO_H_INT_UFLOW 0x04 |
| 24 | #define IF_SDIO_H_INT_DNLD 0x02 |
| 25 | #define IF_SDIO_H_INT_UPLD 0x01 |
| 26 | |
| 27 | #define IF_SDIO_H_INT_STATUS 0x05 |
| 28 | #define IF_SDIO_H_INT_RSR 0x06 |
| 29 | #define IF_SDIO_H_INT_STATUS2 0x07 |
| 30 | |
| 31 | #define IF_SDIO_RD_BASE 0x10 |
| 32 | |
| 33 | #define IF_SDIO_STATUS 0x20 |
| 34 | #define IF_SDIO_IO_RDY 0x08 |
| 35 | #define IF_SDIO_CIS_RDY 0x04 |
| 36 | #define IF_SDIO_UL_RDY 0x02 |
| 37 | #define IF_SDIO_DL_RDY 0x01 |
| 38 | |
| 39 | #define IF_SDIO_C_INT_MASK 0x24 |
| 40 | #define IF_SDIO_C_INT_STATUS 0x28 |
| 41 | #define IF_SDIO_C_INT_RSR 0x2C |
| 42 | |
| 43 | #define IF_SDIO_SCRATCH 0x34 |
| 44 | #define IF_SDIO_SCRATCH_OLD 0x80fe |
Bing Zhao | 2c7e579 | 2009-05-21 11:32:34 -0700 | [diff] [blame] | 45 | #define IF_SDIO_FW_STATUS 0x40 |
Pierre Ossman | 727c26e | 2007-10-17 22:24:24 +0200 | [diff] [blame] | 46 | #define IF_SDIO_FIRMWARE_OK 0xfedc |
| 47 | |
Bing Zhao | b136a14 | 2009-05-19 19:48:19 -0700 | [diff] [blame] | 48 | #define IF_SDIO_RX_LEN 0x42 |
| 49 | #define IF_SDIO_RX_UNIT 0x43 |
| 50 | |
Pierre Ossman | 727c26e | 2007-10-17 22:24:24 +0200 | [diff] [blame] | 51 | #define IF_SDIO_EVENT 0x80fc |
| 52 | |
Bing Zhao | e45d8e5 | 2009-04-06 15:50:56 -0700 | [diff] [blame] | 53 | #define IF_SDIO_BLOCK_SIZE 256 |
| 54 | |
Pierre Ossman | 727c26e | 2007-10-17 22:24:24 +0200 | [diff] [blame] | 55 | #endif |