search for: pci_readl

Displaying 8 results from an estimated 8 matches for "pci_readl".

2012 Sep 26
3
[PATCH v3] xen/tools: Add 64 bits big bar support
...tup(void) /* Map the I/O memory and port resources. */ for ( bar = 0; bar < 7; bar++ ) { + bar_sz_upper = 0; bar_reg = PCI_BASE_ADDRESS_0 + 4*bar; if ( bar == 6 ) bar_reg = PCI_ROM_ADDRESS; bar_data = pci_readl(devfn, bar_reg); + is_64bar = !!((bar_data & (PCI_BASE_ADDRESS_SPACE | + PCI_BASE_ADDRESS_MEM_TYPE_MASK)) == + (PCI_BASE_ADDRESS_SPACE_MEMORY | + PCI_BASE_ADDRESS_MEM_TYPE_64)); pci_writel(devfn, bar...
2008 Jun 11
0
[PATCH] pci: fix off-by-one error and introduce MAX_PCI_FUNC
...unt = 0;; - for (dev = 0; dev <= 0x1f; dev++) { - maxfunc = 0; - for (func = 0; func <= maxfunc; func++) { + for (dev = 0; dev < MAX_PCI_DEVICES; dev++) { + maxfunc = 1; + for (func = 0; func < maxfunc; func++) { a = pci_mkaddr(bus, dev, func, 0); did = pci_readl(a); @@ -374,7 +374,8 @@ hdrtype = pci_readb(a + 0x0e); if (hdrtype & 0x80) - maxfunc = 7; /* Multifunction device */ + /* Multifunction device */ + maxfunc = MAX_PCI_FUNC; rid = pci_readb(a + 0x08); sid = pci_readl(a + 0x2c); @@ -401,7 +402,7 @@ } /* Detecting pci buse...
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_device *dev; domain = pci_scan();...
2005 Apr 21
2
ethersel.c32 issues
...ing I can do to help? >>> >> >> I've been out of town. If you could sprinkle some printf's and see why >> it doesn't detect the device that would be interesting. > >I have added several printf's to ethersel.c including one after the line >did = pci_readl(a); > >I have added >printf("found: DID %08x\n", did); > >and I get a lot of lines like >found: DID ffffffff > >My conclusion is that it does not detect any PCI devices because >something is wrong with the pciscan function. Maybe ethersel is not >scanning t...
2012 Feb 11
14
[PATCH v3 0/5] hvmloader: Make ROM dependencies optional
This patch set mainly allows the user to build a seabios or rombios only version of hvmloader. In addition, when building a seabios only hvmloader, Option ROMs like vgabios and etherboot are no longer required, and therefore can be disabled from the build. Dependency on the bcc compiler can also be avoided the same way. v2: Separate patches for separate issues Introduced config option to
2010 May 10
5
GFX Passthrough
Hi List, many People seem to be interested in the Graphic-Card Passthrough Feature (for more or less obvious reasons). Official Support is still under development, and i hope not to interfere with it in any (bad) way ... But i remember my own painfull and timeconsuming research when i wanted this feature to work, so i thought perhaps this spares some time for the unpatient users like me :)
2011 May 18
90
Patches for VGA-Passthrough XEN 4.2 unstable
Hello, I have been working on VGA-passthrough in the last month. When Xen was at his version 3.5 there was a few patches to make this work for some graphic cards using the patches developed by Han Weidong and posted here (http://lists.xensource.com/archives/html/xen-devel/2009-08/msg01176.html) and the same patches posted file by file are here
2011 May 18
90
Patches for VGA-Passthrough XEN 4.2 unstable
Hello, I have been working on VGA-passthrough in the last month. When Xen was at his version 3.5 there was a few patches to make this work for some graphic cards using the patches developed by Han Weidong and posted here (http://lists.xensource.com/archives/html/xen-devel/2009-08/msg01176.html) and the same patches posted file by file are here