summaryrefslogtreecommitdiff
path: root/sys/arch/macppc/pci
AgeCommit message (Collapse)Author
2009-08-22Constify the what/name parameter of pci_intr_establish().Michael Knudsen
Tested by myself, sthen, oga, kettenis, and jasper. Input from sthen and jasper. ok kettenis (Manpage follows shortly.)
2009-05-03Get rid of pci_addr_fixup machinery; set up the appropriate extents and passMark Kettenis
them along when we attach pci(4). Simplify the rbus code by using extents too.
2009-03-29bzero pci attach argsMark Kettenis
2009-03-29make various strings ("can't map mem space" and similar) more consistentStuart Henderson
between instances, saving space in the kernel. feedback from many (some incorporated, some left for future work). ok deraadt, kettenis, "why not" miod.
2009-03-01Don't let an mmio area replace the frame buffer if they are the same size.Mark Kettenis
Seen on a Tech Source Raptor. ok miod@
2008-09-23Plug more uninitialized variables.Miod Vallat
2008-06-26First pass at removing clauses 3 and 4 from NetBSD licenses.Ray Lai
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@
2008-04-25neccessary -> necessary; from Pierre RiteauJason McIntyre
2008-03-25Make pci_intr_map(9) fail if the interrupt line register is set to 0xff.Mark Kettenis
Prevents crashes later on when we try to estabish the interrupt. ok miod@, deraadt@
2008-01-23Cleanup cn_pri. Change constants to more meaningful names, rather thanJoel Sing
the hp300 related ones currently in use. CN_NORMAL becomes CN_LOWPRI, CN_INTERNAL becomes CN_MIDPRI and CN_REMOTE becomes CN_HIGHPRI. ok miod@
2007-11-05fix and use DEVICE_IS_VGA_PCI, makes vgafb_pci_match() much simplerMartin Reindl
ok oga@ brad@
2007-05-08correct dmesg outputTheo de Raadt
2007-03-01If the kauai is not found in openfirmware, abort the config. ok deraadtDale Rahn
2007-02-05Map the pci space registers, so that the MEMORY enable gets turned on,Dale Rahn
otherwise if openfirmware has not touched the device yet, the kernel faults on the alternate mappings that are created. ok dlg@
2006-12-17Remove unnecessary <dev/wscons/wscons_raster.h> inclusion.Miod Vallat
2006-12-14Make pci subsystem aware of domains. Each host bridge gets assigned a uniqueMark Kettenis
domain number such that we can distinguish between busses with the same bus number that are behind different host bridges. Domains can be accessed by using different device nodes. ok deraadt@
2006-12-05Implement an alternative workaround for the extent lies out of region panicGordon Willem Klok
on old world macppc machines, if the compat property of the device is bandit skip the pci_addr_fixup() call. This acomplishes what the changes in rev 1.33 that were reverted attempted to do without breaking currently supported machines. A positive side effect to this change is also working PCI cards as well as onboard devices. ok drahn@
2006-11-29Add a new member to struct wsemuldisplaydev_attach_args, for a frame bufferMiod Vallat
driver to be able to tell how many wscons screens to attach to it, instead of WSDISPLAY_DEFAULTSCREENS which is a global setting.
2006-10-27Partially revert 1.33 the range calculation change for banditGordon Willem Klok
unfourtunately breaks some machines found the hard way by xsa@ and mbalmer@. ok mbalmer@
2006-10-23Change bandit as found in many old world macs to use configuration type 1.Gordon Willem Klok
Alter range calculation to handle bandits dual non contiguous PCI memory spaces. Finally fix a bug whereby if the "AAPL,Interrupts" property is defined the variable intr isn't assigned a value and garbage may be written to the PCI interrupt register. tested by jolan, pedro, drahn and myself, and in snaps for a week. ok drahn, deraadt
2006-07-14change pcibr_flags back to 0 (turn off verbose mode). If anyone has aTheo de Raadt
problem with a new kernel in the next while, please revert this specific commit and mail the results to kettenis, drahn, and me.
2006-07-13Switch to a three-phase pci resource fixup:Mark Kettenis
1. Reserve resources for enabled devices. 2. Reserve resources for disabled devices. 3. Allocate resources. This way we no longer need to enable/disable devices during fixup. Based on an earlier patch by drahn@. ok deraadt@, drahn@
2006-06-19Be more strict in the probe routines and actually check ca_nintr andMiod Vallat
ca_nreg are large enough for our greedy needs; tweaks and ok kettenis@
2006-05-30The aperture that is needed in legacy vga space is even larger forMatthieu Herrb
the mac mini's ATI graphics card. The full 0xa0000-0xfffff range is used here.
2006-05-10Use a macro in the MI powerpc PCI header for pci_intr_line() insteadBrad Smith
of a function in the MD macppc host bridge code. ok drahn@
2006-05-02The r128 driver also need the 0xb0000-0xc0000 address range. found by Jolan@.Matthieu Herrb
2006-04-28In mapped mode, when allowaperture != 0,also allow mmapping of theMatthieu Herrb
PC-style 0xa0000-0xb0000 region, as the nv X driver uses it. Noticed and patch tested by xsa@ and aanriot@.
2006-04-10typo by bradTheo de Raadt
2006-04-10Intrepid 2 host bridges.Brad Smith
2006-04-10recognize the Intrepid 2 ATA controller.Brad Smith
2006-04-09On macppc and sparc64, if allowaperture=0 only allow mmap()-ing ofMatthieu Herrb
the framebuffer memory in WSDISPLAYIO_MODE_DUMBFB mode.
2006-03-15Remove dead code (SUPPORTS_NON_CONSOLE and MD_DISPLAY_ISA_IOT)Matthieu Herrb
ok miod@, drahn@, dim@.
2006-03-13* Add "pcitag_t *pba_bridgetag" to pci_attach_args. This is set toBrad Smith
NULL for root PCI busses. For busses behind a bridge, it points to a persistent copy of the bridge's pcitag_t. This can be very useful for machine-dependent PCI bus enumeration code. From NetBSD ok grange@ kettenis@
2006-02-14Put quotation marks around the names of unconfigured devices.Mark Kettenis
ok drahn@
2006-02-11remove unused srom_crc32() function.Brad Smith
ok drahn@
2006-02-03Implement interrupt mapping according to the OFW Interrupt Mapping recommendedMark Kettenis
practice. tested by many, ok drahn@
2006-01-02remove last traces of __BROKEN_INDIRECT_CONFIG.Brad Smith
Thanks to aanriot@ and Michael Knudsen for checking that alpha/i386/macppc kernels still compile.
2006-01-01Let cons_init() and cons_init_bell() initialize the whole consdev structure,Miod Vallat
thus removing the need for drivers to initialize cn_pri to CN_DEAD when hardware probe fails.
2005-12-16Missing splx in setfault() error path.Miod Vallat
2005-12-14Prevent access to PCI config space for function >0 on bus 0.Mark Kettenis
Fixes Xorg PCI scan. ok drahn@
2005-12-12Pass interrupt type and level in the correct order.Mark Kettenis
ok drahn@, deraadt@
2005-11-17go loud with autoconfig messages again, we are gonna try to write drivers soonTheo de Raadt
2005-11-13Map the config space area based on sc_maxdevs. (removes panic)Dale Rahn
2005-11-07remove vtophys() on *ppc.Brad Smith
ok drahn@
2005-10-26Mach-macro wipeoutMartin Reindl
'do it' deraadt@
2005-10-22Make sure we use the corrrect interrupt line on Shasta.Mark Kettenis
ok drahn@
2005-10-16Allow PCI_INTERRUPT_PIN_NONE for the interrupt pin.Mark Kettenis
HyperTransport delivers interrupts via messages and does not define any interrupt pins. (The documentation even warns that some operating systems will not function correctly without a non-zero value in its Interrupt Pin configuration space register.) ok deraadt@
2005-10-08if find_node_intr() doesn't find a match, try to use the contents ofDale Rahn
'interrupts'. Also fix a bug where a signed value with -1 in it is compared against 'sizeof(....)'.
2005-10-08Disable caching on vga buffer on 64bit machines. currently it causesDale Rahn
hangs.
2005-10-07match uata devices found on more modern (ie. G5) machines. partsTheo de Raadt
from kettenis, ok drahn