summaryrefslogtreecommitdiffstats
path: root/sys/arch/macppc (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Add a const char* as first member of struct adb_attach_args, so that we canmiod2011-06-153-3/+12
| | | | | | pass a struct confargs * on macppc for some specific children of the adb node, and not confuse real adb device attachments. ok mpi@
* Make use of macobio_* methods to manage the i2s GPIOs, remove the customsmpi2011-06-073-217/+127
| | | | | | gpio_* methods and move the remaining global variables in the softc. ok ratchov@, krw@
* Fix the use of mute/volume keys broken by the last API change in audio.cmpi2011-06-071-4/+4
| | | | ok deraadt@
* Move the bufcachepercent setting code to MI locations -- set it to 42%deraadt2011-06-051-15/+1
| | | | | | | for now; that is unlikely to hit some of the remaining starvation bugs. Repair the bufpages calculation too; i386 was doing it ahead of time (incorrectly) and then re-calculating it. ok thib
* Remove the freelist member from vm_physsegoga2011-05-301-4/+1
| | | | | | | | | | | | | | | | | | The new world order of pmemrange makes this data completely redundant (being dealt with by the pmemrange constraints instead). Remove all code that messes with the freelist. While touching every caller of uvm_page_physload() anyway, add the flags argument to all callers (all but one is 0 and that one already used PHYSLOAD_DEVICE) and remove the macro magic to allow callers to continue without it. Should shrink the code a bit, as well. matthew@ pointed out some mistakes i'd made. ``freelist death, I like. Ok.' ariane@ `I agree with the general direction, go ahead and i'll fix any fallout shortly'' miod@ (68k 88k and vax i could not check would build)
* Add dfs(4), a driver to support the Dynamic Frequency Switching featurempi2011-05-255-12/+186
| | | | | | | | found on some G4 PowerBook. Tested by many, thanks. ok sthen@, kettenis@, miod@
* On OpenBSD, we've always attached scsibus(4) to umass(4), even formatthew2011-05-241-2/+1
| | | | | | | ATAPI devices. atapiscsi(4) is only for handling ATAPI devices on an ATA bus, so umass(4) shouldn't care about it. ok krw@, dlg@; no objections from deraadt@
* Enable ath(4)mpi2011-05-221-1/+2
| | | | ok deraadt@
* Unify various gpio access using methods that take an offset relative to thempi2011-05-155-50/+60
| | | | | | | | | | mac-io bus base address. Needed by upcoming dfs(4) support. On some Apple machines, the openfirmware returns a gpio offset relative to the gpio controller (generaly at 0x50). These offsets should be corrected to be relative to the bus base address. looks fine to kettenis@, ok miod@
* pm_* methods are always attached to a PMU, no need to check for hardware.mpi2011-05-143-77/+16
| | | | ok miod@
* Refactor queue allocation and initialization into a wdc_alloc_queue()matthew2011-05-091-5/+4
| | | | | | | | | | | function, and let attachment code calls this rather than malloc(9). This prevents re-initialization of the queue in shared queue chipsets. Also, add wdc_free_queue() as a complementary function. Earlier version (without wdc_free_queue()) tested by sthen@ and Amit Kulkarni on various pciide(4) chips. ok dlg@
* add support for muting the master channel on i2s based cards, this allows thejasper2011-05-052-12/+58
| | | | | | | | "mute" key on keyboards to function too. tested by kettenis on aoa(4) and snapper(4) by me. from Martin Pieuchot ok kettenis@ ratchov@
* fix volume up and down using the keyboard keysjasper2011-05-041-4/+3
| | | | | from Martin Pieuchot ok ratchov@
* - enable fenvmartynas2011-04-281-0/+3
| | | | - add nearbyint, nearbyintf and nearbyintl implemented using fenv
* as confirmed by my 11mo old son, this makes midi keyboards work with macppctodd2011-04-192-4/+7
| | | | "no objection" drahn@
* Revert the sigacts diff: NFS can apparently retain pointers to processesguenther2011-04-181-8/+8
| | | | | | until they're zombies and then send them signals (for intr mounts). Until that is untangled, the sigacts change is unsafe. sthen@ was the victim for this one
* Use 'CLR(<buf>->b_flags, B_READ | B_WRITE | B_DONE)' regardless ofkrw2011-04-161-6/+6
| | | | | what the previous IO was. Less chance of copy and paste errors. Suggested by miod@.
* More than a decade ago, interrupt handlers on sparc started returning 0deraadt2011-04-154-8/+27
| | | | | | | | | | | | | | | | | | | | | | | (interrupt was not for me), 1 (positive interrupt was for me), or -1 (i am not sure...). We have continued with this practice in as many drivers as possible, throughout the tree. This makes some of the architectures use that information in their interrupt handler calling code -- if 1 is returned (and we know this specific machine does not have edge-shared interrupts), we finish servicing other possible handlers on the same pin. If the interrupt pin remains asserted (from a different device), we will end up back in the interrupt servicing code of course... but this is cheaper than calling all the chained interrupts on a pin. This does of course count on shared level interrupts being properly sorted by IPL. There have been some concerns about starvation of drivers which incorrectly return 1. Those drivers should be hunted down so that they return -1. ok drahn
* In days of yore one could arbitrarily whack buffer flags. Those dayskrw2011-04-151-6/+11
| | | | | | | | | | | | | are past. Use CLR() and SET() to modify necessary flags while leaving the flags used by the buffer cache in peace. Should make bufcache code much less confused about the state of the bufs used in reading/writing disklabels. Other such flag abuses no doubt await a visit. Errors in original diff found by miod@. ok beck@ deraadt@
* Correct the sharing of the signal handling state: stuff that shouldguenther2011-04-151-8/+8
| | | | | | | | | | | | be shared (p_sigignore, p_sigcatch, P_NOCLDSTOP, P_NOCLDWAIT) moves to struct sigacts, wihle stuff that should be per rthread (ps_oldmask, SAS_OLDMASK, ps_sigstk) moves to struct proc. Treat the coredumping state bits (ps_sig, ps_code, ps_type, ps_sigval) as per-rthread until our locking around coredumping is better. Oh, and remove the old SunOS-compat ps_usertramp member. "I like the sound of this" tedu@
* Convert the kernel Makefiles to autogenerate dependencies during compilationguenther2011-04-151-19/+27
| | | | | | | | | using the -MD option to cc, with -MP, -MT, and -MF where needed, converting "make depend" to a no-op. This increases parallelism for those using "make -j" and keeps the dependencies up to date with each compilation automatically. sparc and vax users will need to rebuild gcc with support for the -M[PTF] options before config'ing with this diff.
* Include <libkern.h> to get proper strrchr() prototype.miod2011-04-101-1/+2
|
* The various read*label() have stopped returning error strings for quitemiod2011-04-061-7/+4
| | | | | | some time, and return errnos instead. Fix or remove out-of-date comments mentioning the error strings, and make their callers check the return value against zero, not NULL.
* Iopoolification of some less common scsi drivers.krw2011-04-031-15/+22
| | | | ok dlg@ ("miod will not object" dlg@)
* Normalize sentinel. Use _MACHINE_*_H_ and _<ARCH>_*_H_ properly and consitently.pirofti2011-03-233-12/+12
| | | | Discussed and okay drahn@. Okay deraadt@.
* Change daddr_t to daddr32_t. The bootblocks on our architectures onlyderaadt2011-03-131-2/+2
| | | | | | | do 32-bit block spanning. If later on we get some that can/should do 64-bit, that can be done now using daddr64_t (but of course, we are taking this step to finalize the daddr_t 64-bit conversion). ok miod krw
* Crank MAXDSIZ up to 2G on macppc and socppc.ajacoutot2011-03-031-2/+2
| | | | ok miod@ drahn@ kettenis@
* Force the DUID cache used to generate hw.disknames to be updatedkrw2011-02-261-1/+3
| | | | | | | | after every disklabel read or write. This keeps the DUID cache more in sync with the physical world. De-syncing noted by drahn@ while zapping disklabels with dd. ok jsing@ deraadt@
* Only attach if the "device_type" propery is "programmer-button". On the iMackettenis2011-02-191-4/+9
| | | | | | | | G5 (PowerMac8,2) attaching pgs(4) makes the machine hang. This machine has the "device_type" property set to "gpio" attaching pgs(4), which is that case for newer machines that don't seem to have a real button anyway. ok miod@, jasper@
* Disable sbt and ubt devices. The bluetooth code will sometimes sleep whilemiod2011-02-171-2/+2
| | | | | holding locks, this is not allowed, and nobody has stepped up to fix this, so better not lure people into using bluetooth devices.
* - use nitems()jasper2011-01-141-4/+4
| | | | "doesn't hurt" deraadt@
* move to 4.9-currentderaadt2011-01-131-2/+2
|
* rename imask[] to cpu_imask[] to because imask is too loud as far asderaadt2011-01-084-26/+26
| | | | | kernel namespace ok miod
* The Ubiquiti WiFiStation EXT works on the Sun Blade 1500.damien2011-01-081-1/+2
| | | | Enable athn at uhub on all USB 2.0 capable arches.
* If genassym fails, sort on the pipeline will indicate no error resultingderaadt2010-12-301-4/+3
| | | | | in some grief. Split this out. From Vladimir Kirillov
* Kill pmap_phys_address(), and force every driver's mmap() routine to returnmiod2010-12-261-2/+2
| | | | | | | a physical address [more precisely, something suitable to pass to pmap_enter()'sphysical address argument]. This allows MI drivers to implement mmap() routines without having to know about the pmap_phys_address() implementation and #ifdef obfuscation.
* oops, i forgot to check in the BRKSIZ define in uvm, but deraadt thinkstedu2010-12-151-1/+5
| | | | its better as a per arch MD define anyway. all default to MAXDSIZ as before.
* rsu(4) works on the sparc64, so add it everywhere where urtwn(4) is.damien2010-12-121-1/+2
|
* - use consistent 'include' rules without a full relative path.jasper2010-12-061-6/+6
| | | | | | tested on a GENERIC config from all arches. ok deraadt@ miod@
* Introduce a new pci routine, pci_conf_size(), which returns the size of amiod2010-12-042-3/+20
| | | | | | | given pcitag_t configuration address space. Currently, all pci controllers will return the usual 0x100 bytes of PCI configuration space, but this will eventually change on PCIe-capable controlers. ok kettenis@
* After the most recent change, make it possible to make -j again. Thederaadt2010-12-021-5/+5
| | | | | early MD and late MI files must be split up so that vers.o can sneak between. Issue spotted by bluhm, repair discussed with miod
* move vers.o to before the other objects, so that it is not linked last.deraadt2010-12-021-4/+4
| | | | | | | | having it linked last is bad (on at least i386 and amd64) because the lapic is mapped over the start of the data segment -- savecore(8) then reads the version string for a fixed buffer space, and reads into the lapic area causing unintended side-effects (at least on Intel X5570 and X5680) found by pedro, discussed with kettenis and mpf and miod
* Remove unused vgafb_cnprobe().miod2010-11-272-13/+2
|
* Disable uscanner(4) by default on all kernels which configure it. First stepmiod2010-11-261-2/+2
| | | | until possible removal, if indeed this causes no regression for scanner users.
* Use cons_decl() to get console routine prototypes, instead of rolling our own.miod2010-11-221-6/+2
|
* Remove prototypes for missing (removed) functions or already found in amiod2010-11-221-2/+1
| | | | MI header file.
* add urtwn(4) to more USB 2.0 capable architectures, since it worksdamien2010-11-151-1/+2
| | | | | | on sparc64 and macppc. prodded by jsg@
* Push all potential (as in, all system MI not utilized by the bootblocks)deraadt2010-11-121-2/+3
| | | | | .h files into the ctags run as well to bring #define's and structs and such into scope. Problem reported by thib
* Replace snprintf(foo, sizeof foo, "%s", ...) with strlcpy. ok deraadt@ krw@miod2010-11-111-3/+3
|
* Sync a bunch of USB devices from i386 to macppc, compiles, butdrahn2010-11-051-13/+24
| | | | devices not tested. Not going to get tested unless they are available.