if_sdio.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. #ifndef _LBS_IF_SDIO_H
  12. #define _LBS_IF_SDIO_H
  13. #define IF_SDIO_IOPORT 0x00
  14. #define IF_SDIO_H_INT_MASK 0x04
  15. #define IF_SDIO_H_INT_OFLOW 0x08
  16. #define IF_SDIO_H_INT_UFLOW 0x04
  17. #define IF_SDIO_H_INT_DNLD 0x02
  18. #define IF_SDIO_H_INT_UPLD 0x01
  19. #define IF_SDIO_H_INT_STATUS 0x05
  20. #define IF_SDIO_H_INT_RSR 0x06
  21. #define IF_SDIO_H_INT_STATUS2 0x07
  22. #define IF_SDIO_RD_BASE 0x10
  23. #define IF_SDIO_STATUS 0x20
  24. #define IF_SDIO_IO_RDY 0x08
  25. #define IF_SDIO_CIS_RDY 0x04
  26. #define IF_SDIO_UL_RDY 0x02
  27. #define IF_SDIO_DL_RDY 0x01
  28. #define IF_SDIO_C_INT_MASK 0x24
  29. #define IF_SDIO_C_INT_STATUS 0x28
  30. #define IF_SDIO_C_INT_RSR 0x2C
  31. #define IF_SDIO_SCRATCH 0x34
  32. #define IF_SDIO_SCRATCH_OLD 0x80fe
  33. #define IF_SDIO_FW_STATUS 0x40
  34. #define IF_SDIO_FIRMWARE_OK 0xfedc
  35. #define IF_SDIO_RX_LEN 0x42
  36. #define IF_SDIO_RX_UNIT 0x43
  37. #define IF_SDIO_EVENT 0x80fc
  38. #define IF_SDIO_BLOCK_SIZE 256
  39. #define CONFIGURATION_REG 0x03
  40. #define HOST_POWER_UP (0x1U << 1)
  41. #endif