6 #define SET_LAW_ENTRY(idx, a, sz, trgt) \
7 { .index = idx, .addr = a, .size = sz, .trgt_id = trgt }
37 LAW_TRGT_IF_PCI = 0x00,
38 LAW_TRGT_IF_PCI_2 = 0x01,
39 #ifndef CONFIG_MPC8641
40 LAW_TRGT_IF_PCIE_1 = 0x02,
42 #ifndef CONFIG_MPC8572
43 LAW_TRGT_IF_PCIE_3 = 0x03,
45 LAW_TRGT_IF_LBC = 0x04,
46 LAW_TRGT_IF_CCSR = 0x08,
47 LAW_TRGT_IF_DDR_INTRLV = 0x0b,
48 LAW_TRGT_IF_RIO = 0x0c,
49 LAW_TRGT_IF_DDR = 0x0f,
50 LAW_TRGT_IF_DDR_2 = 0x16, /* 2nd controller */
52 #define LAW_TRGT_IF_DDR_1 LAW_TRGT_IF_DDR
53 #define LAW_TRGT_IF_PCI_1 LAW_TRGT_IF_PCI
54 #define LAW_TRGT_IF_PCIX LAW_TRGT_IF_PCI
55 #define LAW_TRGT_IF_PCIE_2 LAW_TRGT_IF_PCI_2
58 #define LAW_TRGT_IF_PCIE_1 LAW_TRGT_IF_PCI
62 #define LAW_TRGT_IF_PCIE_3 LAW_TRGT_IF_PCI
69 enum law_trgt_if trgt_id;
72 extern void set_law(u8 idx, phys_addr_t addr, enum law_size sz, enum law_trgt_if id);
73 extern void disable_law(u8 idx);
74 extern void init_laws(void);
75 extern void print_laws(void);
77 /* define in board code */
78 extern struct law_entry law_table[];
79 extern int num_law_entries;