summaryrefslogtreecommitdiffstats
path: root/sys/arch/i386/pci/pcibios.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* sizes for free(); ok semariederaadt2015-09-081-2/+4
|
* convert several malloc(9) to mallocarray(9).semarie2015-09-081-2/+2
| | | | ok deraadt@ guenther@ "re-wrap the long lines" kettenis@
* Include executable mapping for BIOS32 pages. Fixes a problem where mappingsmlarkin2015-07-171-1/+3
| | | | | | | | | | | | | done in this region using PAE w/NX caused #PFs (as they lacked the exec permission previously). Also unmap the region when we're finished. No sense in leaving extra executable regions lying around. Fixes non-ACPI uniprocessor i386 machines that have NX/PAE (these would previously panic in pcibiosattach). ok deraadt@
* add a size argument to free. will be used soon, but for now default to 0.tedu2014-07-121-2/+2
| | | | after discussions with beck deraadt kettenis.
* It's been a quarter century: we can assume volatile is present with that name.guenther2014-03-291-3/+3
| | | | ok dlg@ mpi@ deraadt@
* Appease LLVM's integrated assembler.brad2013-11-281-3/+3
| | | | | | | | | error: ambiguous instructions require an explicit suffix (could be 'cmpb', 'cmpw', 'cmpl', or 'cmpq' error: unknown token in expression cmp -> cmpl, %cs:* -> *%cs: ok kettenis@
* Format string fixes: %hu/%hd for uint16_t, %u/%d/%x for uint32_tsf2013-10-011-3/+3
| | | | | - despite the name, ntohl returns uint32_t, not long - also fix some %d into %u
* Use %z* for size_tsf2013-10-011-2/+2
| | | | while there, fix a few %d into %u
* __attribute__((packed)) -> __packed. The ioprbs.c chunk was commented out, andmiod2010-11-201-2/+2
| | | | | uncommenting it is intentional. ok deraadt@
* First pass at removing clauses 3 and 4 from NetBSD licenses.ray2008-06-261-8/+1
| | | | | | | | | Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
* Hang acpi(4) below bios(4) instead of mainbus(4). This lets us move acpi(4)deraadt2007-12-051-2/+2
| | | | | | | before pcibios(4), and then.... if acpi(4) attaches, skip pcibios(4) since it messes the machines up. Fixes claudio's HP dl320 G5, and almost assuredly others. ok kettenis
* typo fixes; didickman@gmailderaadt2007-03-191-2/+2
|
* Revert PAE pmap for now, until the strange bug is found. This stopstom2007-02-201-2/+2
| | | | | | | | | | the freezes many of us are seeing (especially on amd64 machines running OpenBSD/i386). Much testing by nick@ (as always - thanks!), hugh@, ian@, kettenis@ and Sam Smith (s (at) msmith (dot) net). Requested by, input from, and ok deraadt@ ok art@, kettenis@, miod@
* Nuke all commons but one, and enable --warn-common in LINKFLAGS.miod2006-11-291-1/+2
|
* ansi/deregisterjsg2006-09-191-30/+14
|
* implement separate PAE pmap that allows access to 64g of physmemmickey2006-04-271-2/+2
| | | | | | | | | | | | | if supported by the cpu(s). currently not enabled by default and not compiled into ramdisks. this grows paddr_t to 64bit but yet leaves bus_addr_t at 32bits. measures are taken to favour dmaable memory allocation from below 4g line such that buffer cache is already allocated form below, pool backend allocator prefers lower memory and then finally bounce buffers are used as last resort. PAE is engaged only if global variable cpu_pae is manually set to non-zero and there is physical memory present above 4g. simplify pcibios address math to use u_long as we always will be in the 32bit space.
* replace magic numbers w/ a proper sizeof; from peter@mickey2005-01-081-4/+6
|
* silence real gcc 3.3.5espie2005-01-041-2/+3
| | | | okay mickey@.
* rev not rev.deraadt2004-08-091-3/+3
|
* three four killmickey2003-06-031-6/+1
|
* i386 changes to move to ELF. asm cleanup. Change MAXDSIZ to 512M for 1Gsep.drahn2003-04-171-5/+5
| | | | DARPA funded work.
* check upon the pir length prior to using it, ignore short tables; from henric@attbi.commickey2002-07-121-3/+6
|
* Some laptops (such as the Toshiba Libretto L series) use _PIR insteadmillert2002-03-211-2/+8
| | | | | of the standard $PIR for the signature so for that too. From NetBSD and FreeBSD. mickey@ says commitski
* First round of __P removal in sysmillert2002-03-141-12/+12
|
* always print the icu we've foundmickey2001-05-121-12/+2
|
* shorter thus better printingsmickey2001-02-281-4/+4
|
* patchable no verbose default pcibios_flagsmickey2001-01-271-3/+2
|
* change interrupt routing strategy from simplemickey2001-01-271-44/+21
| | | | | | | | | | run through the devices and programming the icu and pci headers before real pci bus autoconf starts and include all devices present on all pci busses, to a per attached device routing in pci_intr_map(). this solves several cases of premature interrupts hanging system due to absent interrupt handlers during autoconf. 10x for testing: millert@ krw@ aaron@ chris@ tholo@ brad@ jason@ deraadt@
* put pci_intr_fixup.h into pcibiosvar.h; billions of tiny headers for nothingmickey2001-01-251-2/+1
|
* put pci_addr_fixup.h into pcibiosvar.h as well,mickey2001-01-241-2/+1
| | | | all it had were a struct and a proto.
* elliminate pci_bus_fixup.h by movingmickey2001-01-241-2/+1
| | | | pci_bus_fixup() proto into pcibiosvar.h
* rename pcibios.h to pcibiosvar.hderaadt2000-10-311-2/+2
|
* protect %edx when calling biosmickey2000-10-161-2/+2
|
* a little verbosity on probe, a little caution on bios callsmickey2000-10-161-8/+23
|
* this follows the dox, saying that %ds should be loaded w/mickey2000-09-221-15/+21
| | | | | | | | the proper segment address/selector as returned from bios32_service(). both %cs and %ds have to be the same value (hmm, same descs?), sincw some bioses are pic, and care only about offsets against the segs. huge, enormous, 10X to brad@ for providing an incredibly usefull testbed and invaluable time of his, for resets and incouraging comments (;
* check out the bios device name we are probed w/ to not probe on apmmickey2000-09-201-2/+4
|
* do not call pcibios_pir_init() if intr_fixup was disabled; also, sync w/ latetest netbsd developmentsmickey2000-09-071-80/+74
|
* init pcibios_flags to -1, so if pcibios is disabled in ukc all looks disabledmickey2000-09-051-2/+2
|
* update netbsd rcsid, which we seem to be up tomickey2000-09-041-2/+2
|
* fix dmesg outputderaadt2000-09-041-44/+65
|
* export pcibios config flagsmickey2000-09-041-5/+8
|
* pcibios0 at bios0 flags 0x0000mickey2000-08-171-49/+78
| | | | | | | | | this is now a real device, which looks in flags for disabling address, interrupt or bus fixup. bios0's flags are to disable bios32 and pcibios probing. since boot_config support editing flags, it's posible to adjust pcibios functionality in the generic kernel upon boot time. man is coming.
* sync w/ netbsd almost -current code (;mickey2000-08-081-5/+71
| | | | | | | | | fixes quite a few problems. adds new option PCIBIOS_ADDR_FIXUP. numerous extra fixes by me, also pointed out by other ppl, such as avoid panics, ifdef on pciverbose, not diagnostic, some other smaller knits; some have been forwarded back to netbsd developers, some will go soon too.
* dummy me, forgot \n in panic->printf transitionmickey2000-07-061-2/+2
|
* don't panic for nothingmickey2000-07-061-3/+3
|
* fix netbsd rcsids up.mickey2000-03-281-2/+2
| | | | | | also, from the 3rd try make proper openbsd rcsids, rediculous 3 commits just to add proper openbsd rcsids. i think someone forgot to _look_ at the diffs before commit.
* add missing OpenBSD RCS IDsbrad2000-03-271-0/+1
|
* from netbsd: pci interrupt routing code.mickey2000-03-261-0/+475
also, change a few pcidevs names to match netbsd (and more descriptive). tested on a bunch of laptops, helps resolving 'pin X unmapped' problems for (usually) usb and cardbus cntrollers.