summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/ofw
Commit message (Collapse)AuthorAgeFilesLines
* Do not declare the various OFW command buffers static. It does notnwhitehorn2010-03-231-23/+23
| | | | | | | appear to be necessary on either sparc64 or powerpc, and is a concurrency nightmare. Reviewed by: marius
* Update d_mmap() to accept vm_ooffset_t and vm_memattr_t.rnoland2009-12-291-2/+2
| | | | | | | | | | | | | This replaces d_mmap() with the d_mmap2() implementation and also changes the type of offset to vm_ooffset_t. Purge d_mmap2(). All driver modules will need to be rebuilt since D_VERSION is also bumped. Reviewed by: jhb@ MFC after: Not in this lifetime...
* strict kobj signatures: some ofw_setprop fixesavg2009-06-111-4/+4
| | | | | | | propname parameter is const Reviewed by: imp, current@ Approved by: jhb (mentor)
* Introduce support for cpufreq on PowerPC with the dynamic frequencynwhitehorn2009-05-311-0/+206
| | | | switching capabilities of the MPC7447A and MPC7448.
* Add an Open Firmware access module for real-mode OF accesses to the PowerPCnwhitehorn2009-04-051-0/+922
| | | | | build. This is required for the IBM Mambo simulator, as well as a variety of non-Apple PowerPC hardware.
* Add support for 64-bit PowerPC CPUs operating in the 64-bit bridge modenwhitehorn2009-04-041-11/+22
| | | | | | | | | | provided, for example, on the PowerPC 970 (G5), as well as on related CPUs like the POWER3 and POWER4. This also adds support for various built-in hardware found on Apple G5 hardware (e.g. the IBM CPC925 northbridge). Reviewed by: grehan
* Adapt parts of the sparc64 Open Firmware bus enumeration code (in particular,nwhitehorn2008-12-152-189/+228
| | | | | | | | | | | | | | | the code for parsing interrupt maps) to PowerPC and reflect their new MI status by moving them to the shared dev/ofw directory. This commit also modifies the OFW PCI enumeration procedure on PowerPC to allow the bus to find non-firmware-enumerated devices that Apple likes to add, and adds some useful Open Firmware properties (compat and name) to the pnpinfo string of children on OFW SBus, EBus, PCI, and MacIO links. Because of the change to PCI enumeration on PowerPC, X has started working again on PPC machines with Grackle hostbridges. Reviewed by: marius Obtained from: sparc64
* Allow OFW syscons to restore itself when the X server exits or there is a VT ↵nwhitehorn2008-12-131-26/+38
| | | | | | | | switch by redoing the Open Firmware card initialization calls in ofwfb_set_mode(). This uses the same trick (setting V_ADP_MODECHANGE) to arrange this as machfb(4) and creatorfb(4).
* Add support for a console mouse pointer on Open Firmware syscons.nwhitehorn2008-12-132-1/+85
| | | | MFC after: 7.1-RELEASE
* Prevent the OF syscons module from trying to attach to real devices on thenwhitehorn2008-10-151-0/+5
| | | | nexus by only attaching to a device with no OF node.
* Convert PowerPC AIM PCI and nexus busses to standard OFW bus interface. Thisnwhitehorn2008-10-145-287/+377
| | | | | | | | | | | simplifies certain device attachments (Kauai ATA, for instance), and makes possible others on new hardware. On G5 systems, there are several otherwise standard PCI devices (Serverworks SATA) that will not allow their interrupt properties to be written, so this information must be supplied directly from Open Firmware. Obtained from: sparc64
* Improve rev 183168, so that if /chosen/stdout is connected to the serialsobomax2008-09-231-6/+5
| | | | | | | | port by OF the syscons won't take over console. Only attach syscons to "screen" if /chosen/stdout is not connected, which could be the case when loader(8) is booted directly from the OF. This fixes Marcel's Xserver. Reported by: marcel
* When attaching framebuffer to "/chosen/stdout" node fails, try attachingsobomax2008-09-191-2/+10
| | | | | | | to "screen" node directly. The problem is that by default OF on some (all?) Macs either doesn't provide "/chosen/stdout" or redirects it somewhere, unless you boot in manual mode via CMD-ALT-O-F. It's nice to see normal FreeBSD boot output instead of blank gray screen.
* - Make pcib_devclass private to sys/dev/pci/pci_pci.c and change all thejhb2006-01-061-5/+3
| | | | | | | various pcib drivers to use their own private devclass_t variables for their modules. - Use the DEFINE_CLASS_0() macro to declare drivers for the various pcib drivers while I'm here.
* Add a font width argument to vi_load_font_t, vi_save_font_t and vi_putm_tmarius2005-09-281-7/+5
| | | | | | | | | | | | | | | | and do some preparations for handling 12x22 fonts (currently lots of code implies and/or hardcodes a font width of 8 pixels). This will be required on sparc64 which uses a default font size of 12x22 in order to add font loading and saving support as well as to use a syscons(4)-supplied mouse pointer image. This API breakage is committed now so it can be MFC'ed in time for 6.0 and later on upcoming framebuffer drivers destined for use on sparc64 and which are expected to rely on using font loading internally and on a syscons(4)-supplied mouse pointer image can be easily MFC'ed to RELENG_6 rather than requiring a backport. Tested on: i386, sparc64, make universe MFC after: 1 week
* Remove unnecessary and alarming printf.grehan2005-08-161-1/+1
| | | | MFC after: 1 day
* Quick hack-o-rama to allow the Xorg Radeon driver to start up. Itgrehan2005-05-211-0/+13
| | | | | tries to mmap memory outside of the available BARs, so allow the range checks to be relaxed with a sysctl.
* Optimize putc routine to write 2 ints instead of 8 chars to uncachedgrehan2005-03-191-14/+41
| | | | | | | framebuffer memory. Speeds up system time of large ascii file cat by 4x. Inspired by: Linux scrolling so damned fast.
* Mods for Xorg server:grehan2005-02-252-6/+113
| | | | | | | | - store assigned PCI addresses at cninit time for later mmap range check - implement set_border to scrub X remnants when switching back to VTYs - implement mmap, only allowing addresses within the range of the console adapter.
* /* -> /*- for license, minor formatting changesimp2005-01-072-2/+2
|
* Instead of "OpenFirmware", "openfirmware", etc. use the official spellingmarius2004-08-161-1/+1
| | | | | | "Open Firmware" from IEEE 1275 and OpenFirmware.org (no pun intended). Ok'ed by: tmm
* Advertise that color is supported so that syscons doesn't come upgrehan2004-08-161-2/+2
| | | | in monochrome mode when run as init.
* Add 32-bit framebuffer support. Tested on PearPC at lo-res, too painfulgrehan2004-07-062-29/+130
| | | | to watch at hi-res.
* Catchup to now-required <sys/module.h> for PowerPCgrehan2004-06-252-0/+2
|
* Do the dreaded s/dev_t/struct cdev */phk2004-06-161-1/+1
| | | | Bump __FreeBSD_version accordingly.
* Correctly create interrupt key for PCI, which is the OpenFirmwaregrehan2004-02-101-11/+17
| | | | | | | pci-hi/med/lo + node 'interrupts' property. This worked by accident until recent notebooks required correct operation. Tested by: Suleiman Souhlal <refugee@segfaulted.com>
* A syscons implementation using the 8-bit framebuffer set up bygrehan2004-01-212-0/+746
| | | | | | | OpenFirmware. Not at all optimized, but provides a PC-style user-experience. Tested on revA imac, B&W G3, 2k iBook, and G4 eMac.
* Prefer new location of pci include files (which have only been in theimp2003-08-221-3/+3
| | | | | tree for two or more years now), except in a few places where there's code to be compatible with older versions of FreeBSD.
* Simplify ofw_pci_fixup(). It doesn't need to be recursive, since thegrehan2003-03-031-19/+3
| | | | | | bridge code already handles IRQ adjustment on the far side of a bridge. Reviewed by: benno
* Make ofw_pci_find_node() use the reg property instead of thebenno2003-01-091-5/+5
| | | | assigned-addresses property. This works a lot better.
* Add a pcib variant to allow us to fix up interrupt assignments.benno2003-01-091-0/+118
| | | | We probably want to do something wrt bus enumeration as well at some point.
* OpenFirmware PCI support code.benno2002-07-092-0/+273
This and the sparc64 equivalent should probably be merged at some point.
OpenPOWER on IntegriCloud