1
2
3
4
5#include <common.h>
6#include <pci.h>
7
8#include <galileo/pci.h>
9
10static const unsigned char pci_irq_swizzle[2][PCI_MAX_DEVICES] = {
11#ifdef CONFIG_ZUMA_V2
12 {0, 0, 0, 0, 0, 0, 0, 29,[8 ... PCI_MAX_DEVICES - 1] = 0},
13 {0, 0, 0, 0, 0, 0, 0, 28,[8 ... PCI_MAX_DEVICES - 1] = 0}
14#else
15 {0, 0, 0, 0, 0, 0, 0, 27, 27,[9 ... PCI_MAX_DEVICES - 1] = 0},
16 {0, 0, 0, 0, 0, 0, 0, 29, 29,[9 ... PCI_MAX_DEVICES - 1] = 0}
17#endif
18};
19
20static const unsigned int pci_p2p_configuration_reg[] = {
21 PCI_0P2P_CONFIGURATION, PCI_1P2P_CONFIGURATION
22};
23
24static const unsigned int pci_configuration_address[] = {
25 PCI_0CONFIGURATION_ADDRESS, PCI_1CONFIGURATION_ADDRESS
26};
27
28static const unsigned int pci_configuration_data[] = {
29 PCI_0CONFIGURATION_DATA_VIRTUAL_REGISTER,
30 PCI_1CONFIGURATION_DATA_VIRTUAL_REGISTER
31};
32
33static const unsigned int pci_error_cause_reg[] = {
34 PCI_0ERROR_CAUSE, PCI_1ERROR_CAUSE
35};
36
37static const unsigned int pci_arbiter_control[] = {
38 PCI_0ARBITER_CONTROL, PCI_1ARBITER_CONTROL
39};
40
41static const unsigned int pci_snoop_control_base_0_low[] = {
42 PCI_0SNOOP_CONTROL_BASE_0_LOW, PCI_1SNOOP_CONTROL_BASE_0_LOW
43};
44static const unsigned int pci_snoop_control_top_0[] = {
45 PCI_0SNOOP_CONTROL_TOP_0, PCI_1SNOOP_CONTROL_TOP_0
46};
47
48static const unsigned int pci_access_control_base_0_low[] = {
49 PCI_0ACCESS_CONTROL_BASE_0_LOW, PCI_1ACCESS_CONTROL_BASE_0_LOW
50};
51static const unsigned int pci_access_control_top_0[] = {
52 PCI_0ACCESS_CONTROL_TOP_0, PCI_1ACCESS_CONTROL_TOP_0
53};
54
55static const unsigned int pci_scs_bank_size[2][4] = {
56 {PCI_0SCS_0_BANK_SIZE, PCI_0SCS_1_BANK_SIZE,
57 PCI_0SCS_2_BANK_SIZE, PCI_0SCS_3_BANK_SIZE},
58 {PCI_1SCS_0_BANK_SIZE, PCI_1SCS_1_BANK_SIZE,
59 PCI_1SCS_2_BANK_SIZE, PCI_1SCS_3_BANK_SIZE}
60};
61
62static const unsigned int pci_p2p_configuration[] = {
63 PCI_0P2P_CONFIGURATION, PCI_1P2P_CONFIGURATION
64};
65
66static unsigned int local_buses[] = { 0, 0 };
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86void pciWriteConfigReg (PCI_HOST host, unsigned int regOffset,
87 unsigned int pciDevNum, unsigned int data)
88{
89 volatile unsigned int DataForAddrReg;
90 unsigned int functionNum;
91 unsigned int busNum = PCI_BUS (pciDevNum);
92 unsigned int addr;
93
94 if (pciDevNum > 32)
95 return;
96 if (pciDevNum == SELF) {
97 pciDevNum =
98 (GTREGREAD (pci_p2p_configuration_reg[host]) >> 24) &
99 0x1f;
100 busNum = GTREGREAD (pci_p2p_configuration_reg[host]) &
101 0xff0000;
102 }
103 functionNum = regOffset & 0x00000700;
104 pciDevNum = pciDevNum << 11;
105 regOffset = regOffset & 0xfc;
106 DataForAddrReg =
107 (regOffset | pciDevNum | functionNum | busNum) | BIT31;
108 GT_REG_WRITE (pci_configuration_address[host], DataForAddrReg);
109 GT_REG_READ (pci_configuration_address[host], &addr);
110 if (addr != DataForAddrReg)
111 return;
112 GT_REG_WRITE (pci_configuration_data[host], data);
113}
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133unsigned int pciReadConfigReg (PCI_HOST host, unsigned int regOffset,
134 unsigned int pciDevNum)
135{
136 volatile unsigned int DataForAddrReg;
137 unsigned int data;
138 unsigned int functionNum;
139 unsigned int busNum = PCI_BUS (pciDevNum);
140
141 if (pciDevNum > 32)
142 return 0xffffffff;
143 if (pciDevNum == SELF) {
144 pciDevNum =
145 (GTREGREAD (pci_p2p_configuration_reg[host]) >> 24) &
146 0x1f;
147 busNum = GTREGREAD (pci_p2p_configuration_reg[host]) &
148 0xff0000;
149 }
150 functionNum = regOffset & 0x00000700;
151 pciDevNum = pciDevNum << 11;
152 regOffset = regOffset & 0xfc;
153 DataForAddrReg =
154 (regOffset | pciDevNum | functionNum | busNum) | BIT31;
155 GT_REG_WRITE (pci_configuration_address[host], DataForAddrReg);
156 GT_REG_READ (pci_configuration_address[host], &data);
157 if (data != DataForAddrReg)
158 return 0xffffffff;
159 GT_REG_READ (pci_configuration_data[host], &data);
160 return data;
161}
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185void pciOverBridgeWriteConfigReg (PCI_HOST host,
186 unsigned int regOffset,
187 unsigned int pciDevNum,
188 unsigned int busNum, unsigned int data)
189{
190 unsigned int DataForReg;
191 unsigned int functionNum;
192
193 functionNum = regOffset & 0x00000700;
194 pciDevNum = pciDevNum << 11;
195 regOffset = regOffset & 0xff;
196 busNum = busNum << 16;
197 if (pciDevNum == SELF) {
198 DataForReg = (regOffset | pciDevNum | functionNum) | BIT0;
199 } else {
200 DataForReg = (regOffset | pciDevNum | functionNum | busNum) |
201 BIT31 | BIT0;
202 }
203 GT_REG_WRITE (pci_configuration_address[host], DataForReg);
204 if (pciDevNum == SELF) {
205 GT_REG_WRITE (pci_configuration_data[host], data);
206 } else {
207
208
209 GT_REG_WRITE (pci_configuration_data[host], WORD_SWAP (data));
210 }
211}
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235unsigned int pciOverBridgeReadConfigReg (PCI_HOST host,
236 unsigned int regOffset,
237 unsigned int pciDevNum,
238 unsigned int busNum)
239{
240 unsigned int DataForReg;
241 unsigned int data;
242 unsigned int functionNum;
243
244 functionNum = regOffset & 0x00000700;
245 pciDevNum = pciDevNum << 11;
246 regOffset = regOffset & 0xff;
247 busNum = busNum << 16;
248 if (pciDevNum == SELF) {
249 DataForReg = (regOffset | pciDevNum | functionNum) | BIT31;
250 } else {
251
252 DataForReg = (regOffset | pciDevNum | functionNum | busNum) |
253 BIT0 | BIT31;
254 }
255 GT_REG_WRITE (pci_configuration_address[host], DataForReg);
256 if (pciDevNum == SELF) {
257 GT_REG_READ (pci_configuration_data[host], &data);
258 return data;
259 } else {
260
261 GT_REG_READ (pci_configuration_data[host], &data);
262 return WORD_SWAP (data);
263 }
264}
265
266
267
268
269
270
271
272
273static unsigned int pciGetRegOffset (PCI_HOST host, PCI_REGION region)
274{
275 switch (host) {
276 case PCI_HOST0:
277 switch (region) {
278 case PCI_IO:
279 return PCI_0I_O_LOW_DECODE_ADDRESS;
280 case PCI_REGION0:
281 return PCI_0MEMORY0_LOW_DECODE_ADDRESS;
282 case PCI_REGION1:
283 return PCI_0MEMORY1_LOW_DECODE_ADDRESS;
284 case PCI_REGION2:
285 return PCI_0MEMORY2_LOW_DECODE_ADDRESS;
286 case PCI_REGION3:
287 return PCI_0MEMORY3_LOW_DECODE_ADDRESS;
288 }
289 case PCI_HOST1:
290 switch (region) {
291 case PCI_IO:
292 return PCI_1I_O_LOW_DECODE_ADDRESS;
293 case PCI_REGION0:
294 return PCI_1MEMORY0_LOW_DECODE_ADDRESS;
295 case PCI_REGION1:
296 return PCI_1MEMORY1_LOW_DECODE_ADDRESS;
297 case PCI_REGION2:
298 return PCI_1MEMORY2_LOW_DECODE_ADDRESS;
299 case PCI_REGION3:
300 return PCI_1MEMORY3_LOW_DECODE_ADDRESS;
301 }
302 }
303 return PCI_0MEMORY0_LOW_DECODE_ADDRESS;
304}
305
306static unsigned int pciGetRemapOffset (PCI_HOST host, PCI_REGION region)
307{
308 switch (host) {
309 case PCI_HOST0:
310 switch (region) {
311 case PCI_IO:
312 return PCI_0I_O_ADDRESS_REMAP;
313 case PCI_REGION0:
314 return PCI_0MEMORY0_ADDRESS_REMAP;
315 case PCI_REGION1:
316 return PCI_0MEMORY1_ADDRESS_REMAP;
317 case PCI_REGION2:
318 return PCI_0MEMORY2_ADDRESS_REMAP;
319 case PCI_REGION3:
320 return PCI_0MEMORY3_ADDRESS_REMAP;
321 }
322 case PCI_HOST1:
323 switch (region) {
324 case PCI_IO:
325 return PCI_1I_O_ADDRESS_REMAP;
326 case PCI_REGION0:
327 return PCI_1MEMORY0_ADDRESS_REMAP;
328 case PCI_REGION1:
329 return PCI_1MEMORY1_ADDRESS_REMAP;
330 case PCI_REGION2:
331 return PCI_1MEMORY2_ADDRESS_REMAP;
332 case PCI_REGION3:
333 return PCI_1MEMORY3_ADDRESS_REMAP;
334 }
335 }
336 return PCI_0MEMORY0_ADDRESS_REMAP;
337}
338
339bool pciMapSpace (PCI_HOST host, PCI_REGION region, unsigned int remapBase,
340 unsigned int bankBase, unsigned int bankLength)
341{
342 unsigned int low = 0xfff;
343 unsigned int high = 0x0;
344 unsigned int regOffset = pciGetRegOffset (host, region);
345 unsigned int remapOffset = pciGetRemapOffset (host, region);
346
347 if (bankLength != 0) {
348 low = (bankBase >> 20) & 0xfff;
349 high = ((bankBase + bankLength) >> 20) - 1;
350 }
351
352 GT_REG_WRITE (regOffset, low | (1 << 24));
353 GT_REG_WRITE (regOffset + 8, high);
354
355 if (bankLength != 0) {
356 GT_REG_WRITE (remapOffset, remapBase >> 20);
357
358
359 }
360 return true;
361}
362
363unsigned int pciGetSpaceBase (PCI_HOST host, PCI_REGION region)
364{
365 unsigned int low;
366 unsigned int regOffset = pciGetRegOffset (host, region);
367
368 GT_REG_READ (regOffset, &low);
369 return (low & 0xfff) << 20;
370}
371
372unsigned int pciGetSpaceSize (PCI_HOST host, PCI_REGION region)
373{
374 unsigned int low, high;
375 unsigned int regOffset = pciGetRegOffset (host, region);
376
377 GT_REG_READ (regOffset, &low);
378 GT_REG_READ (regOffset + 8, &high);
379 high &= 0xfff;
380 low &= 0xfff;
381 if (high <= low)
382 return 0;
383 return (high + 1 - low) << 20;
384}
385
386
387
388
389
390
391void pciMapMemoryBank (PCI_HOST host, MEMORY_BANK bank,
392 unsigned int pciDramBase, unsigned int pciDramSize)
393{
394 pciDramBase = pciDramBase & 0xfffff000;
395 pciDramBase = pciDramBase | (pciReadConfigReg (host,
396 PCI_SCS_0_BASE_ADDRESS
397 + 4 * bank,
398 SELF) & 0x00000fff);
399 pciWriteConfigReg (host, PCI_SCS_0_BASE_ADDRESS + 4 * bank, SELF,
400 pciDramBase);
401 if (pciDramSize == 0)
402 pciDramSize++;
403 GT_REG_WRITE (pci_scs_bank_size[host][bank], pciDramSize - 1);
404}
405
406
407
408
409
410
411
412
413
414
415
416
417
418bool pciSetRegionFeatures (PCI_HOST host, PCI_ACCESS_REGIONS region,
419 unsigned int features, unsigned int baseAddress,
420 unsigned int regionLength)
421{
422 unsigned int accessLow;
423 unsigned int accessHigh;
424 unsigned int accessTop = baseAddress + regionLength;
425
426 if (regionLength == 0) {
427 pciDisableAccessRegion (host, region);
428 return true;
429 }
430
431 accessLow = (baseAddress & 0xfff00000) >> 20;
432
433
434 accessLow = accessLow | (features & 0xfffff000);
435
436 GT_REG_WRITE (pci_access_control_base_0_low[host] + 0x10 * region,
437 accessLow);
438
439 accessHigh = (accessTop & 0xfff00000) >> 20;
440
441
442 GT_REG_WRITE (pci_access_control_top_0[host] + 0x10 * region,
443 accessHigh - 1);
444 return true;
445}
446
447
448
449
450
451
452
453
454void pciDisableAccessRegion (PCI_HOST host, PCI_ACCESS_REGIONS region)
455{
456
457 GT_REG_WRITE (pci_access_control_base_0_low[host] + 0x10 * region,
458 0x01001fff);
459 GT_REG_WRITE (pci_access_control_top_0[host] + 0x10 * region, 0);
460}
461
462
463
464
465
466
467
468bool pciArbiterEnable (PCI_HOST host)
469{
470 unsigned int regData;
471
472 GT_REG_READ (pci_arbiter_control[host], ®Data);
473 GT_REG_WRITE (pci_arbiter_control[host], regData | BIT31);
474 return true;
475}
476
477
478
479
480
481
482
483bool pciArbiterDisable (PCI_HOST host)
484{
485 unsigned int regData;
486
487 GT_REG_READ (pci_arbiter_control[host], ®Data);
488 GT_REG_WRITE (pci_arbiter_control[host], regData & 0x7fffffff);
489 return true;
490}
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507bool pciParkingDisable (PCI_HOST host, PCI_AGENT_PARK internalAgent,
508 PCI_AGENT_PARK externalAgent0,
509 PCI_AGENT_PARK externalAgent1,
510 PCI_AGENT_PARK externalAgent2,
511 PCI_AGENT_PARK externalAgent3,
512 PCI_AGENT_PARK externalAgent4,
513 PCI_AGENT_PARK externalAgent5)
514{
515 unsigned int regData;
516 unsigned int writeData;
517
518 GT_REG_READ (pci_arbiter_control[host], ®Data);
519 writeData = (internalAgent << 14) + (externalAgent0 << 15) +
520 (externalAgent1 << 16) + (externalAgent2 << 17) +
521 (externalAgent3 << 18) + (externalAgent4 << 19) +
522 (externalAgent5 << 20);
523 regData = (regData & ~(0x7f << 14)) | writeData;
524 GT_REG_WRITE (pci_arbiter_control[host], regData);
525 return true;
526}
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541bool pciSetRegionSnoopMode (PCI_HOST host, PCI_SNOOP_REGION region,
542 PCI_SNOOP_TYPE snoopType,
543 unsigned int baseAddress,
544 unsigned int regionLength)
545{
546 unsigned int snoopXbaseAddress;
547 unsigned int snoopXtopAddress;
548 unsigned int data;
549 unsigned int snoopHigh = baseAddress + regionLength;
550
551 if ((region > PCI_SNOOP_REGION3) || (snoopType > PCI_SNOOP_WB))
552 return false;
553 snoopXbaseAddress =
554 pci_snoop_control_base_0_low[host] + 0x10 * region;
555 snoopXtopAddress = pci_snoop_control_top_0[host] + 0x10 * region;
556 if (regionLength == 0) {
557 GT_REG_WRITE (snoopXbaseAddress, 0x0000ffff);
558 GT_REG_WRITE (snoopXtopAddress, 0);
559 return true;
560 }
561 baseAddress = baseAddress & 0xfff00000;
562 data = (baseAddress >> 20) | snoopType << 12;
563 GT_REG_WRITE (snoopXbaseAddress, data);
564 snoopHigh = (snoopHigh & 0xfff00000) >> 20;
565 GT_REG_WRITE (snoopXtopAddress, snoopHigh - 1);
566 return true;
567}
568
569
570
571
572
573static int gt_read_config_dword (struct pci_controller *hose,
574 pci_dev_t dev, int offset, u32 * value)
575{
576 int bus = PCI_BUS (dev);
577
578 if ((bus == local_buses[0]) || (bus == local_buses[1])) {
579 *value = pciReadConfigReg ((PCI_HOST) hose->cfg_addr, offset,
580 PCI_DEV (dev));
581 } else {
582 *value = pciOverBridgeReadConfigReg ((PCI_HOST) hose->
583 cfg_addr, offset,
584 PCI_DEV (dev), bus);
585 }
586 return 0;
587}
588
589static int gt_write_config_dword (struct pci_controller *hose,
590 pci_dev_t dev, int offset, u32 value)
591{
592 int bus = PCI_BUS (dev);
593
594 if ((bus == local_buses[0]) || (bus == local_buses[1])) {
595 pciWriteConfigReg ((PCI_HOST) hose->cfg_addr, offset,
596 PCI_DEV (dev), value);
597 } else {
598 pciOverBridgeWriteConfigReg ((PCI_HOST) hose->cfg_addr,
599 offset, PCI_DEV (dev), value,
600 bus);
601 }
602 return 0;
603}
604
605
606
607
608
609static void gt_setup_ide (struct pci_controller *hose,
610 pci_dev_t dev, struct pci_config_table *entry)
611{
612 static const int ide_bar[] = { 8, 4, 8, 4, 0, 0 };
613 u32 bar_response, bar_value;
614 int bar;
615
616 for (bar = 0; bar < 6; bar++) {
617 pci_write_config_dword (dev, PCI_BASE_ADDRESS_0 + bar * 4,
618 0x0);
619 pci_read_config_dword (dev, PCI_BASE_ADDRESS_0 + bar * 4,
620 &bar_response);
621
622 pciauto_region_allocate (bar_response &
623 PCI_BASE_ADDRESS_SPACE_IO ? hose->
624 pci_io : hose->pci_mem, ide_bar[bar],
625 &bar_value);
626
627 pci_write_config_dword (dev, PCI_BASE_ADDRESS_0 + bar * 4,
628 bar_value);
629 }
630}
631
632#ifndef CONFIG_P3G4
633static void gt_fixup_irq (struct pci_controller *hose, pci_dev_t dev)
634{
635 unsigned char pin, irq;
636
637 pci_read_config_byte (dev, PCI_INTERRUPT_PIN, &pin);
638
639 if (pin == 1) {
640 irq = pci_irq_swizzle[(PCI_HOST) hose->
641 cfg_addr][PCI_DEV (dev)];
642 if (irq)
643 pci_write_config_byte (dev, PCI_INTERRUPT_LINE, irq);
644 }
645}
646#endif
647
648struct pci_config_table gt_config_table[] = {
649 {PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_STORAGE_IDE,
650 PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID, gt_setup_ide},
651
652 {}
653};
654
655struct pci_controller pci0_hose = {
656#ifndef CONFIG_P3G4
657 fixup_irq:gt_fixup_irq,
658#endif
659 config_table:gt_config_table,
660};
661
662struct pci_controller pci1_hose = {
663#ifndef CONFIG_P3G4
664 fixup_irq:gt_fixup_irq,
665#endif
666 config_table:gt_config_table,
667};
668
669void pci_init_board (void)
670{
671 unsigned int command;
672
673 pci0_hose.first_busno = 0;
674 pci0_hose.last_busno = 0xff;
675 local_buses[0] = pci0_hose.first_busno;
676
677 pci_set_region (pci0_hose.regions + 0,
678 CONFIG_SYS_PCI0_0_MEM_SPACE,
679 CONFIG_SYS_PCI0_0_MEM_SPACE,
680 CONFIG_SYS_PCI0_MEM_SIZE, PCI_REGION_MEM);
681
682
683 pci_set_region (pci0_hose.regions + 1,
684 CONFIG_SYS_PCI0_IO_SPACE_PCI,
685 CONFIG_SYS_PCI0_IO_SPACE, CONFIG_SYS_PCI0_IO_SIZE, PCI_REGION_IO);
686
687 pci_set_ops (&pci0_hose,
688 pci_hose_read_config_byte_via_dword,
689 pci_hose_read_config_word_via_dword,
690 gt_read_config_dword,
691 pci_hose_write_config_byte_via_dword,
692 pci_hose_write_config_word_via_dword,
693 gt_write_config_dword);
694
695 pci0_hose.region_count = 2;
696
697 pci0_hose.cfg_addr = (unsigned int *) PCI_HOST0;
698
699 pci_register_hose (&pci0_hose);
700
701#ifndef CONFIG_P3G4
702 pciArbiterEnable (PCI_HOST0);
703 pciParkingDisable (PCI_HOST0, 1, 1, 1, 1, 1, 1, 1);
704#endif
705
706 command = pciReadConfigReg (PCI_HOST0, PCI_COMMAND, SELF);
707 command |= PCI_COMMAND_MASTER;
708 pciWriteConfigReg (PCI_HOST0, PCI_COMMAND, SELF, command);
709
710 pci0_hose.last_busno = pci_hose_scan (&pci0_hose);
711
712 command = pciReadConfigReg (PCI_HOST0, PCI_COMMAND, SELF);
713 command |= PCI_COMMAND_MEMORY;
714 pciWriteConfigReg (PCI_HOST0, PCI_COMMAND, SELF, command);
715
716 pci1_hose.first_busno = pci0_hose.last_busno + 1;
717 pci1_hose.last_busno = 0xff;
718 pci1_hose.current_busno = pci0_hose.current_busno;
719 local_buses[1] = pci1_hose.first_busno;
720
721
722 pci_set_region (pci1_hose.regions + 0,
723 CONFIG_SYS_PCI1_0_MEM_SPACE,
724 CONFIG_SYS_PCI1_0_MEM_SPACE,
725 CONFIG_SYS_PCI1_MEM_SIZE, PCI_REGION_MEM);
726
727
728 pci_set_region (pci1_hose.regions + 1,
729 CONFIG_SYS_PCI1_IO_SPACE_PCI,
730 CONFIG_SYS_PCI1_IO_SPACE, CONFIG_SYS_PCI1_IO_SIZE, PCI_REGION_IO);
731
732 pci_set_ops (&pci1_hose,
733 pci_hose_read_config_byte_via_dword,
734 pci_hose_read_config_word_via_dword,
735 gt_read_config_dword,
736 pci_hose_write_config_byte_via_dword,
737 pci_hose_write_config_word_via_dword,
738 gt_write_config_dword);
739
740 pci1_hose.region_count = 2;
741
742 pci1_hose.cfg_addr = (unsigned int *) PCI_HOST1;
743
744 pci_register_hose (&pci1_hose);
745
746#ifndef CONFIG_P3G4
747 pciArbiterEnable (PCI_HOST1);
748 pciParkingDisable (PCI_HOST1, 1, 1, 1, 1, 1, 1, 1);
749#endif
750
751 command = pciReadConfigReg (PCI_HOST1, PCI_COMMAND, SELF);
752 command |= PCI_COMMAND_MASTER;
753 pciWriteConfigReg (PCI_HOST1, PCI_COMMAND, SELF, command);
754
755 pci1_hose.last_busno = pci_hose_scan (&pci1_hose);
756
757 command = pciReadConfigReg (PCI_HOST1, PCI_COMMAND, SELF);
758 command |= PCI_COMMAND_MEMORY;
759 pciWriteConfigReg (PCI_HOST1, PCI_COMMAND, SELF, command);
760}
761