Merge to Fedora kernel-2.6.7-1.494 and VServer 1.9.1.12. Fix some previous merge...
[linux-2.6.git] / include / asm-ppc / ocp_ids.h
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 /*
16  * Vender  device
17  * [xxxx]  [xxxx]
18  *
19  *  Keep in order, please
20  */
21
22 /* Vendor IDs 0x0001 - 0xFFFF copied from pci_ids.h */
23
24 #define OCP_VENDOR_INVALID      0x0000
25 #define OCP_VENDOR_ARM          0x0004
26 #define OCP_VENDOR_FREESCALE    0x1057
27 #define OCP_VENDOR_IBM          0x1014
28 #define OCP_VENDOR_MARVELL      0x11ab
29 #define OCP_VENDOR_MOTOROLA     OCP_VENDOR_FREESCALE
30 #define OCP_VENDOR_XILINX       0x10ee
31 #define OCP_VENDOR_UNKNOWN      0xFFFF
32
33 /* device identification */
34
35 /* define type */
36 #define OCP_FUNC_INVALID        0x0000
37
38 /* system 0x0001 - 0x001F */
39
40 /* Timers 0x0020 - 0x002F */
41
42 /* Serial 0x0030 - 0x006F*/
43 #define OCP_FUNC_16550          0x0031
44 #define OCP_FUNC_IIC            0x0032
45 #define OCP_FUNC_USB            0x0033
46 #define OCP_FUNC_MPSC           0x0034
47 #define OCP_FUNC_COMM_MPSC      0x0035
48 #define OCP_FUNC_SDMA           0x0036
49
50 /* Memory devices 0x0090 - 0x009F */
51 #define OCP_FUNC_MAL            0x0090
52 #define OCP_FUNC_DMA            0x0091
53
54 /* Display 0x00A0 - 0x00AF */
55
56 /* Sound 0x00B0 - 0x00BF */
57
58 /* Mass Storage 0x00C0 - 0xxCF */
59 #define OCP_FUNC_IDE            0x00C0
60
61 /* Misc 0x00D0 - 0x00DF*/
62 #define OCP_FUNC_GPIO           0x00D0
63 #define OCP_FUNC_ZMII           0x00D1
64 #define OCP_FUNC_PERFMON        0x00D2  /* Performance Monitor */
65 #define OCP_FUNC_RGMII          0x00D3
66 #define OCP_FUNC_TAH            0x00D4
67 #define OCP_FUNC_I2C            0x00D5  /* I2C Controller */
68 #define OCP_FUNC_BRG            0x00D6  /* Baud Rate Generator */
69 #define OCP_FUNC_PIC            0x00D7  /* Programmable Interrupt Controller */
70
71 /* Network 0x0200 - 0x02FF */
72 #define OCP_FUNC_EMAC           0x0200
73 #define OCP_FUNC_ENET           0x0201  /* TSEC & FEC */
74 #define OCP_FUNC_COMM_EMAC      0x0202
75 #define OCP_FUNC_GFAR           0x0203  /* TSEC & FEC */
76
77 /* Bridge devices 0xE00 - 0xEFF */
78 #define OCP_FUNC_OPB            0x0E00
79 #define OCP_FUNC_HB             0x0E01  /* Host bridge */
80
81 #define OCP_FUNC_UNKNOWN        0xFFFF