summaryrefslogtreecommitdiffstats
path: root/sys/arch/macppc (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Change the rbus md_space_{map,unmap} signature to take a rbus_tag_t insteadmiod2009-07-211-6/+6
| | | | | | | of the bus_space_tag_t it contains; an upcoming implementation will need to know the rbus_tag_t for which it works at this point. All callers updated accordingly; no functional change intended.
* for the isp(4) driver, invert the meaning of the options which pullderaadt2009-06-242-4/+2
| | | | | firmwares into the smaller (and larger) media ok krw
* 4.6-BETAmiod2009-06-201-2/+2
|
* They're DPME partitions, not DPMI partitions.krw2009-06-191-2/+2
| | | | ok miod@ drahn@
* Back out all the buffer cache changes I committed during c2k9. This reverts threebeck2009-06-151-1/+7
| | | | | | | | | | commits: 1) The sysctl allowing bufcachepercent to be changed at boot time. 2) The change moving the buffer cache hash chains to a red-black tree 3) The dynamic buffer cache (Which depended on the earlier too). ok on the backout from marco and todd
* Don't mess with the bounds in the lp if *partoffp is non-NULL, since thisderaadt2009-06-141-4/+6
| | | | | | indicates that writedisklabel is trying to find the location for writing the label. If the lp is messed with, an invalid checksum is written. done with miod and kettenis, lots of moaning and gnashing of teeth, etc
* The bounds was not always being properly updatedderaadt2009-06-131-5/+7
| | | | ok miod
* Disable xlights for now, since the rapid periodic interrupts it generatesderaadt2009-06-091-2/+2
| | | | | help worsen the interrupt race that dale is trying to fix. He'll get that fixed, but for now, we can try to run macppc in the most reliable fashion.
* backout interrupt diff until it the next round of fixesderaadt2009-06-097-604/+728
|
* Clamp the ending bound to the size of the disk. This makes disklabel -Aderaadt2009-06-051-5/+6
| | | | still do the right thing if the MBR has a lie in it
* Recycle four ancient fields in the disklabel structure, replacing them withderaadt2009-06-041-7/+9
| | | | | | | | | | | | bounds information, ie. the zone of the disk that OpenBSD can use. Have each pre-disklabel parser (MBR, DPME, or per-arch MD disklabel parsers) figure out this area and pass it up to userland. Then, delete all the same disk parsing code from disklabel(8) since the kernel passes it up. Lots and lots of - signs in the disklabel(8) code. Tested on as many platforms as possible, the fallout will be repaired as time goes on. To test, use disklabel -d <drive> and validate that the bounds do not overlap any boot blocks. This same information is used by disklabel -A... OK for the concept from krw, miod, and drahn
* add kern.bufcachepercent sysctl to allow adjusting the buffer cachebeck2009-06-031-7/+1
| | | | | size on a running system. ok art@, oga@
* Arla client rename from xfs to nnpfs for later upgrades. Tested on various arches. ok todd@ beck@jj2009-06-031-6/+6
|
* Reintroduce the macppc interrupt subsystem rewrite. Several bugs havedrahn2009-06-027-728/+604
| | | | been found and corrected.
* A piece of an upcoming diff was on the same line, revert that portiondrahn2009-06-021-2/+2
| | | | of the previous diff so macppc is stable again. found/ok maja@
* add CRYPTO to macppc RAMDISKtodd2009-06-021-1/+2
| | | | Sure deraadt@
* no point in calling curcpu() when ci is already set. ok miod@drahn2009-06-011-2/+2
|
* Enable zyd in more places now we know it is endian safe.jsg2009-06-012-2/+4
|
* Remove BUS_DMAMEM_NOSYNC definition. Its name is not consistent withmiod2009-05-311-2/+1
| | | | | | other BUS_DMA_xxx flag names, and nothing uses it. ok many@
* Enable udl(4) by default for amd64, i386, and macppc.mglocker2009-05-161-3/+3
| | | | OK deraadt@, kettenis@
* udl(4) works on macppc, too. Disabled in GENERIC by default.mglocker2009-05-141-1/+4
|
* Get rid of pci_addr_fixup machinery; set up the appropriate extents and passkettenis2009-05-035-640/+102
| | | | | them along when we attach pci(4). Simplify the rbus code by using extents too.
* put vlan support onto these mediaderaadt2009-04-281-1/+2
|
* Add a BUS_DMA_ZERO flag for bus_dmamem_alloc() to return zeroed memory.oga2009-04-202-2/+5
| | | | | Saves every damned driver calling bzero(), and continues the M_ZERO, PR_ZERO symmetry.
* Count number of cpus found (potentially not attached) and store thatderaadt2009-04-191-1/+5
| | | | in sysctl hw.ncpufound; ok miod kettenis
* Convert the waitok field of uvm_pglistalloc to "flags", more will be added soon.oga2009-04-142-5/+8
| | | | | | | | | For the possibility of sleeping, the first two flags are UVM_PLA_WAITOK and UVM_PLA_NOWAIT. It is an error not to show intention, so assert that one of the two is provided. Switch over every caller in the tree to using the appropriate flag. ok art@, ariane@
* bzero pci attach argskettenis2009-03-292-4/+4
|
* make various strings ("can't map mem space" and similar) more consistentsthen2009-03-291-2/+2
| | | | | | | between instances, saving space in the kernel. feedback from many (some incorporated, some left for future work). ok deraadt, kettenis, "why not" miod.
* Add support for Geyser2 devices from NetBSD and fix some Geyser1 devices thatrobert2009-03-081-95/+114
| | | | | | | | | | | | | | | | can be found in iBook G4 12". Remove references for LCD panel sizes because the same device can be found on different sized laptops and it has nothing to do with the trackpad. Introduce a type variable that stores the device type: FOUNTAIN, GEYSER1 or GEYSER2. This value helps deciding some of the device parameters and it gets printed in the dmesg instead of the panel size. Introduce "mouse button emulation" on multi-touch trackpads just like in macos, so it's not needed to bind mouse buttons to the keyboard anymore: Tap two fingers + mouse button = 3rd mouse button = right click Tap three fingers + mouse button = 2nd mouse button = middle click Discussed with and ok: miod@ and maja@
* When allocating memory in bus_dmamem_alloc() with uvm_pglistalloc(), do notmiod2009-03-071-2/+2
| | | | | try to be smart for the address range, uvm_pglistalloc() is smart enough nowadays.
* Don't let an mmio area replace the frame buffer if they are the same size.kettenis2009-03-011-2/+2
| | | | | | Seen on a Tech Source Raptor. ok miod@
* Add a two new ioctls to the apm(4) interface.oga2009-02-262-3/+12
| | | | | | | | | | | | | | | | | | | APM_IOC_{SUSPEND,STANDBY}_REQ: This is to fix an issue with apm suspend where a call to zzz suspended the machine immediately, not giving anyone listening for apm events (other than apmd) a chance to deal with the upcoming change. This hit X hard since the introduction of drm, since it needs to have time to idle the 3d engine and otherwise get the device into a recoverable state. Such things are needed until we support modesetting in the kernel. Now, instead of forcing a suspend, using ioctl sends out an event similar to if you had put the lid down, giving all userland applications a chance to reply. tested by sthen@ and beck@, especial thanks to sthen for sitting there while I tried to debug this remotely, I owe him beer. Prompted by and ok deraadt@
* Extend the scsi_adapter minphys() callback to take a struct scsi_link *miod2009-02-162-5/+5
| | | | | | as additional argument. This will allow intermediate layers between scsi devices such as sd and scsi host adapters to take appropriate action if necessary.
* remove run(4) from some RAMDISKdamien2009-02-101-2/+1
|
* enable run(4) everywhere where ural(4) and rum(4) are enabled.damien2009-02-102-2/+4
| | | | | run(4) has been reported to work on sparc64 by Maxim Belooussov so I'm pretty confident that it works on all arches.
* Move to 4.5-BETAmiod2009-02-081-2/+2
|
* Revert 1.28, rumoured to cause problems on some machines.miod2009-02-011-16/+10
|
* Some of the latest macppc laptops with no adb subsystem at all, spontaneouslymiod2009-01-291-10/+16
| | | | | | | powerdown if we try to issue pmu commands. Skip these if no adb device appears in the device tree. Adapted from NetBSD.
* Remove /dev/drum and related code.miod2009-01-251-2/+2
|
* Make bus_mem_add_mapping() return ENOMEM if we fail to allocate kva insteadkettenis2009-01-221-3/+2
| | | | | | of panicing. ok drahn@
* add softraidtodd2009-01-201-1/+3
| | | | go ahead miod@
* Fix a sed bug in the makefile's depend target.pirofti2009-01-111-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | What happened was that the output of mkdep was fed to a sed expression that trimmed a bit more than required and also failed to work when attempting to do make depend with pcc. Example: genassym_c.o: /tmp/genassym.whatever ../../../../../sys/param.h \ was changed to: assym.h: \ but what was intended was: assym.h: ../../../../../sys/param.h \ For the pcc -M output things were a bit different and after the make depend the genassym entry would still remain and make would fail. This affected all platforms except amd64 and sgi. Okay miod@.
* Actual final round of timeout_add(to, n * hz) -> timeout_add_sec(to, n)blambert2009-01-112-4/+4
| | | | | | | conversions. ok kettenis@ ok krw@ (possibly for the second time :)
* Add support for the volume buttons and for the eject button foundrobert2009-01-101-8/+28
| | | | | | | | on apple laptops. The eject button will only eject the disc when it's not used by anything. ok miod@
* - add and enable ipgphy(4) everywhere there's a stge(4) entry.jasper2009-01-062-2/+4
| | | | | | | | (if the stge(4) entry is commented, so is the ipgphy(4) entry then). this allows ipgphy0 to attach to my stge0, which has a IC+ 1000A chip discussed with and ok jsg@, ok dlg@
* just attach cpu0, not cpu*, ok kettenisderaadt2008-12-211-2/+2
|
* terse is good, more readable; please commit deraadt@todd2008-12-011-8/+3
|
* Eliminate the redundant bits of code for MTU and multicast handlingbrad2008-11-282-39/+16
| | | | | | | | | | | | | | from the individual drivers now that ether_ioctl() handles this. Shrinks the i386 kernels by.. RAMDISK - 2176 bytes RAMDISKB - 1504 bytes RAMDISKC - 736 bytes Tested by naddy@/okan@/sthen@/brad@/todd@/jmc@ and lots of users. Build tested on almost all archs by todd@/brad@ ok naddy@
* Enable Bluetooth (btd and btctl are not hooked into the build yet)uwe2008-11-261-10/+10
|
* Another bunch of TRY_AGAIN_LATER -> NO_CCB when no I/O could be started.krw2008-11-251-2/+2
| | | | "looks sane to me" marco@