pci_bridge.c (09125c5e76923aa22a72f43cb34b6e74ae7fe17f) | pci_bridge.c (cb8d4c8f54b8271f642f02382eec29d468bb1c77) |
---|---|
1/* 2 * QEMU PCI bus manager 3 * 4 * Copyright (c) 2004 Fabrice Bellard 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to dea 8 --- 102 unchanged lines hidden (view full) --- 111 } else { 112 base = pci_config_get_memory_base(bridge, PCI_MEMORY_BASE); 113 } 114 } 115 116 return base; 117} 118 | 1/* 2 * QEMU PCI bus manager 3 * 4 * Copyright (c) 2004 Fabrice Bellard 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to dea 8 --- 102 unchanged lines hidden (view full) --- 111 } else { 112 base = pci_config_get_memory_base(bridge, PCI_MEMORY_BASE); 113 } 114 } 115 116 return base; 117} 118 |
119/* accessor funciton to get bridge filtering limit */ | 119/* accessor function to get bridge filtering limit */ |
120pcibus_t pci_bridge_get_limit(const PCIDevice *bridge, uint8_t type) 121{ 122 pcibus_t limit; 123 if (type & PCI_BASE_ADDRESS_SPACE_IO) { 124 limit = pci_config_get_io_base(bridge, 125 PCI_IO_LIMIT, PCI_IO_LIMIT_UPPER16); 126 limit |= 0xfff; /* PCI bridge spec 3.2.5.6. */ 127 } else { --- 292 unchanged lines hidden --- | 120pcibus_t pci_bridge_get_limit(const PCIDevice *bridge, uint8_t type) 121{ 122 pcibus_t limit; 123 if (type & PCI_BASE_ADDRESS_SPACE_IO) { 124 limit = pci_config_get_io_base(bridge, 125 PCI_IO_LIMIT, PCI_IO_LIMIT_UPPER16); 126 limit |= 0xfff; /* PCI bridge spec 3.2.5.6. */ 127 } else { --- 292 unchanged lines hidden --- |