53 #define DEV_PCIC_LENGTH 2
64 uint64_t idata = 0, odata = 0;
77 0x04, 0x01, 0x53, 0x4d, 0x43, 0x00, 0x50, 0x43, 0x4d, 0x20,
78 0x45, 0x74, 0x68, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x20, 0x41,
79 0x64, 0x61, 0x70, 0x74, 0x65, 0x72, 0x00, 0x43, 0x49, 0x53,
80 0x20, 0x56, 0x31, 0x2e, 0x30, 0x35, 0x00, 0xff,
82 0x02, 0x01, 0x00, 0x00, 0x01, 0x03, 0x00, 0x00, 0x00, 0xff,
84 0xc1, 0x01, 0x70, 0x50, 0xbc, 0x8e, 0x48, 0x40, 0x00,0x02,0xff,
86 0x22, 0x02, 0x01, 0x02,
88 0x22, 0x05, 0x02, 0x80, 0x96, 0x98, 0x00,
90 0x22, 0x02, 0x03, 0x01,
92 0x22, 0x08, 0x04, 0x06, 0x00, 0x00, 0xc0, 0x2f, 0x48, 0xd2,
94 0x22, 0x02, 0x05, 0x01,
102 unsigned char x[] = {
105 0x04,0x01,0x20,0x00,0x4e,0x69,0x6e,0x6a,0x61,0x41,0x54,0x41,
106 0x2d,0x00,0x56,0x31,0x2e,0x30,0x00,0x41,0x50,0x30,0x30,0x20,
109 0x01,0x23,0x00,0x02,0x03,
111 0xe1,0x01,0x3d,0x11,0x55,0x1e,0xfc,0x23,0xf0,0x61,0x80,0x01,
112 0x07,0x86,0x03,0x01,0x30,0x68,0xd0,0x10,0x00,
115 0x22,0x38,0xf0,0x61,0x90,0x01,0x07,0x96,0x03,0x01,0x30,0x68,
118 0x23,0x38,0xf0,0x61,0xa0,0x01,0x07,0xa6,0x03,0x01,0x30,0x68,
127 if (relative_addr <
sizeof(x))
128 odata = x[relative_addr];
130 debug(
"[ dev_pcic_cis_access: blah blah: addr=0x%x ]\n",
144 uint64_t idata = 0, odata = 0;
145 int controller_nr, socket_nr;
150 controller_nr = d->
regnr & 0x80? 1 : 0;
151 socket_nr = d->
regnr & 0x40? 1 : 0;
153 switch (relative_addr) {
163 switch (d->
regnr & 0x3f) {
168 if (controller_nr == 1 && socket_nr == 1)
187 if (controller_nr == 0 && socket_nr == 0)
193 debug(
"[ pcic: unimplemented write to "
194 "controller %i socket %c, regnr %i: "
195 "data=0x%02x ]\n", controller_nr,
196 socket_nr?
'B' :
'A',
197 d->
regnr & 0x3f, (
int)idata);
199 debug(
"[ pcic: unimplemented read from "
200 "controller %i socket %c, regnr %i ]\n",
201 controller_nr, socket_nr?
'B' :
'A',
226 dev_pcic_access, (
void *)d,
DM_DEFAULT, NULL);
230 0x10070000, 0x1000, dev_pcic_cis_access, (
void *)d,
234 snprintf(tmpstr,
sizeof(tmpstr),
"wdc addr=0x14000180 irq=%s.giu.9",
240 snprintf(tmpstr,
sizeof(tmpstr),
"wdc addr=0x140001f0 irq=%s.giu.9",