search for: pciaddr_t

Displaying 6 results from an estimated 6 matches for "pciaddr_t".

Did you mean: paddr_t
2019 Apr 10
0
pci resource address
Hello, we have a own xxx.c32 file. With syslinux 4.07 With this file we read some information from a pci device. static inline void *pci_get_bar0(pciaddr_t addr) { return (void *)(pci_readl(addr + 0x10) & ~0xf); } int fpga_pci_eeprom_init(unsigned char *buf, int size) { int rval; pciaddr_t addr; void *fpga_addr; struct pci_domain *domain; struct pci_de...
2009 Mar 22
2
[PATCH 1/3] pci: remove (void)cfgtype;
...41,6 @@ struct pci_domain *pci_scan(void) int cfgtype; cfgtype = pci_set_config_type(PCI_CFG_AUTO); - (void)cfgtype; dprintf("PCI configuration type %d\n", cfgtype); dprintf("Scanning PCI Buses\n"); @@ -521,7 +520,6 @@ void gather_additional_pci_config(struct pciaddr_t a; int cfgtype; cfgtype = pci_set_config_type(PCI_CFG_AUTO); - (void)cfgtype; for (nbus = 0; nbus < MAX_PCI_BUSES; nbus++) { bus = NULL;
2008 Jun 11
0
[PATCH] pci: fix off-by-one error and introduce MAX_PCI_FUNC
...0 +0200 +++ syslinux-20080611/com32/include/sys/pci.h 2008-06-11 21:19:22.000000000 +0200 @@ -4,8 +4,9 @@ #include <inttypes.h> #include <sys/io.h> +#define MAX_PCI_FUNC 8 #define MAX_PCI_DEVICES 32 -#define MAX_PCI_BUSES 255 +#define MAX_PCI_BUSES 256 typedef uint32_t pciaddr_t;
2005 Apr 21
2
ethersel.c32 issues
...uot;); + } + } + + return lastbus; +} + static char * skipspace(char *p) { @@ -205,13 +236,23 @@ static struct match * pciscan(struct match *list) { - unsigned int bus, dev, func, maxfunc; + unsigned int bus, dev, func, maxfunc, maxbus; uint32_t did, sid; uint8_t hdrtype, rid; pciaddr_t a; struct match *m; + int bios_maxbus; + + + if ((bios_maxbus = get_bios()) < 0) { + dprintf("PCI bios not detected.\n"); + maxbus = 0xff; + } else { + maxbus = bios_maxbus + 1; + dprintf("PCI bios reports %u buses, scanning...\n", maxbus); + } - for ( b...
2008 Jun 27
2
PCI device assignment to guests (userspace)
Userspace patches for the pci-passthrough functionality. The major updates since the last post are: - Loop to add passthrough devices in pc_init1 - Handle errors in read/write calls - Allow invocation without irq number for in-kernel irqchip Other than this, several small things were fixed according to review comments received last time.
2008 Jun 27
2
PCI device assignment to guests (userspace)
Userspace patches for the pci-passthrough functionality. The major updates since the last post are: - Loop to add passthrough devices in pc_init1 - Handle errors in read/write calls - Allow invocation without irq number for in-kernel irqchip Other than this, several small things were fixed according to review comments received last time.