ocp_ids.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /*
  2. * ocp_ids.h
  3. *
  4. * OCP device ids based on the ideas from PCI
  5. *
  6. * The numbers below are almost completely arbitrary, and in fact
  7. * strings might work better. -- paulus
  8. *
  9. * This program is free software; you can redistribute it and/or modify it
  10. * under the terms of the GNU General Public License as published by the
  11. * Free Software Foundation; either version 2 of the License, or (at your
  12. * option) any later version.
  13. */
  14. /*
  15. * Vender device
  16. * [xxxx] [xxxx]
  17. *
  18. * Keep in order, please
  19. */
  20. /* Vendor IDs 0x0001 - 0xFFFF copied from pci_ids.h */
  21. #define OCP_VENDOR_INVALID 0x0000
  22. #define OCP_VENDOR_ARM 0x0004
  23. #define OCP_VENDOR_FREESCALE 0x1057
  24. #define OCP_VENDOR_IBM 0x1014
  25. #define OCP_VENDOR_MOTOROLA OCP_VENDOR_FREESCALE
  26. #define OCP_VENDOR_XILINX 0x10ee
  27. #define OCP_VENDOR_UNKNOWN 0xFFFF
  28. /* device identification */
  29. /* define type */
  30. #define OCP_FUNC_INVALID 0x0000
  31. /* system 0x0001 - 0x001F */
  32. /* Timers 0x0020 - 0x002F */
  33. /* Serial 0x0030 - 0x006F*/
  34. #define OCP_FUNC_16550 0x0031
  35. #define OCP_FUNC_IIC 0x0032
  36. #define OCP_FUNC_USB 0x0033
  37. #define OCP_FUNC_PSC_UART 0x0034
  38. /* Memory devices 0x0090 - 0x009F */
  39. #define OCP_FUNC_MAL 0x0090
  40. #define OCP_FUNC_DMA 0x0091
  41. /* Display 0x00A0 - 0x00AF */
  42. /* Sound 0x00B0 - 0x00BF */
  43. /* Mass Storage 0x00C0 - 0xxCF */
  44. #define OCP_FUNC_IDE 0x00C0
  45. /* Misc 0x00D0 - 0x00DF*/
  46. #define OCP_FUNC_GPIO 0x00D0
  47. #define OCP_FUNC_ZMII 0x00D1
  48. #define OCP_FUNC_PERFMON 0x00D2 /* Performance Monitor */
  49. #define OCP_FUNC_RGMII 0x00D3
  50. #define OCP_FUNC_TAH 0x00D4
  51. #define OCP_FUNC_SEC2 0x00D5 /* Crypto/Security 2.0 */
  52. /* Network 0x0200 - 0x02FF */
  53. #define OCP_FUNC_EMAC 0x0200
  54. #define OCP_FUNC_GFAR 0x0201 /* TSEC & FEC */
  55. /* Bridge devices 0xE00 - 0xEFF */
  56. #define OCP_FUNC_OPB 0x0E00
  57. #define OCP_FUNC_UNKNOWN 0xFFFF