summaryrefslogtreecommitdiff
path: root/sys/arch/macppc
AgeCommit message (Collapse)Author
2003-10-17Merge an old fix from NetBSD:Alexander Yurchenko
- do not stop/unload current DMA operation if an IRQ was not detected by DMA engine unless the force flag was given, fixes DMA problems in shared IRQ setups; - ack interrupt before entering DMA codepath Tested by many. Work by niklas@ but he doesn't want to commit it for some reason.
2003-10-16more whiteTheo de Raadt
2003-10-16There is no end to the ANSI/KNF journey.Dale Rahn
2003-10-16spacesTheo de Raadt
2003-10-16more ANSI/KNF.Dale Rahn
2003-10-15Further down the ANSI/KNF road, only binary difference is __LINE__.Dale Rahn
2003-10-15asm readability register names are %r0 instead of 0. No binary change.Dale Rahn
2003-10-15The ANSI/KNF trail continues. No binary differences.Dale Rahn
2003-10-08Fix endian bug in macppc bus_space_set_region_N(). ok miod@Dale Rahn
2003-10-03Merge tty_attach() in ttymalloc() and tty_detach() in ttyfree(). The need forMiod Vallat
separate tty registering is gone now that sparc has switched to wscons, and this makes the code less error-prone. Also, remove tests for ttymalloc() failure, since it uses M_WAITOK. ok millert@ deraadt@, tested by various people as well besides me...
2003-09-23Replace select backends with poll backends. selscan() and pollscan()Todd C. Miller
now call the poll backend. With this change we implement greater poll(2) functionality instead of emulating it via the select backend. Adapted from NetBSD and including some changes from FreeBSD. Tested by many, deraadt@ OK
2003-09-22Off-by-ones, from aaron@Miod Vallat
2003-09-06Fix boot -a, add protected cnpollc(). ok deraadt@Dale Rahn
2003-08-27Enable 'Snag' boot on newer Apple machines.Dale Rahn
2003-08-21These files were intended for X11 support, but serve no purpose nowadays,Miod Vallat
as sparc* do not use Xsun-compatible event interface anymore, and alpha only used this for Xtga which we do not ship anymore. Discussed long ago with matthieu@
2003-08-15change arguments to suser. suser now takes the process, and a flagsTed Unangst
argument. old cred only calls user suser_ucred. this will allow future work to more flexibly implement the idea of a root process. looks like something i saw in freebsd, but a little different. use of suser_ucred vs suser in file system code should be looked at again, for the moment semantics remain unchanged. review and input from art@ testing and further review miod@
2003-08-14GENERIC is now safe(4)Jason Wright
2003-08-11move to 3.4-betaTheo de Raadt
2003-08-07Allow nested interrupts in the openpic interrupt controller, tested byDale Rahn
brad@ and miod@
2003-07-29Remove a diagnostic print which was left in the code to determine howDale Rahn
bad integer division is for calculation of the tick timer. Turns out that the typical error on most machines is < .005% just a few seconds per week. Not enough to bother with at this time.
2003-07-22Fix .depend generation for assym.h. Resolves PR 1154.Otto Moerbeek
ok deraadt@
2003-07-19The last parameter to _dma_init for wdc code is flags, not read,Dale Rahn
mask of just the desired bit. ok grange@
2003-07-14'dual' clock support for macppc, this allows the stat clock to runDale Rahn
at a rate independant of the HZ clock. when profiling is enabled stat clock now runs at 1000/s instead of the normal 100/s. Other improvements to the ppc clock handling and KNF/ansi.
2003-07-08The best read code of mice and men, ... (reviewed by /dev/null)Dale Rahn
2003-07-08Improved timebase register handling. use all 64 bits, instead of theDale Rahn
lower 32 bits.
2003-07-07disable accidentially enabled 'debug' flag; ok drahnPeter Valchev
2003-07-02Use defines for the interrupt type, not magic numbers.Dale Rahn
2003-07-02Add a stub where code could be added to make use of the new key on recentDale Rahn
laptop keyboards (mirror display on F7). Documents the key, no functionality.
2003-07-02Reduce the amount of asm code in powerpc/macppc by replacing it withDale Rahn
inlined functions, helps improve readability and fix a couple of bugs. ok miod@
2003-07-02make ppc_intr_(enable|disable)() inlined functions.Dale Rahn
2003-06-27kqueue support for various usb devices including: usb, uhid, ugen,Nathan Binkert
and uscanner From NetBSD
2003-06-23bus_space_*_raw*_1() do not exist; drahn@ okMichael Shalayeff
2003-06-23Fix NAP/DOZE sleeping on powerpc. also on newer 745x machines use NAP notDale Rahn
DOZE, DOZE is not valid on these processors. Improves battery life on 12" PBG4 from 3 hours to 4 hours. tested by tdeval@
2003-06-16Use a slightly better way to intuit the memory/mmio PCI regions,Dale Rahn
now properly detects these for nvidia based LCDs. On some machines accellerated X using nv now works.
2003-06-16correct sense of rate check... oops.Jason Wright
2003-06-16rate setting is best effort, not precise, so figure out the closest sampleJason Wright
rate that goes with the requested rate, and return the chosen rate. ok drahn
2003-06-16Check for the backlight control on the stdout_node (the LCD) rather thanDale Rahn
possibly the parent, which does not have the backlight-control property. Fixes brightness control on 'dual' node OFW diplays.
2003-06-14add support for: ulinear_le, ulinear_be, ulinear:16 (partially based onJason Wright
NetBSD). ok drahn who let me reboot one of his laptops a LOT =)
2003-06-11Get rid of the '#if 1' nonsense.Dale Rahn
2003-06-11Previously DMA/UDMA was disabled on macppc RAMDISK kernels, I have notDale Rahn
heard of any DMA related failures on these machines. Remove the code (and the flag) which was previously used to enable DMA/UDMA modes on wdc_obio now it will default to always being on for known systems.
2003-06-11The upgrade script depends upon that, if mount_foo is present on the ramdiskMiod Vallat
filesystem, option FOO is in the kernel. Ensure this for mount_mfs/option MFS as well, to prevent failing upgrades on some architectures. ok krw@ millert@
2003-06-09more 3/4 cleanup for pefoTheo de Raadt
2003-06-09pefo 3/4 licence cleanupsTheo de Raadt
2003-06-06Fix a copied constant, mention why a number doesnt match linux, removeDale Rahn
duplicated line.
2003-06-05Cleanup and enable kauaiata DMA. Tables should be mostly saneDale Rahn
Please _TEST_.
2003-06-05Cleanup:Alexander Yurchenko
- don't include both sys/types.h and sys/param.h - spaces vs tab - kill trailing spaces ok drahn@
2003-06-05ATA100 driver for apple's new machines, aka kauai.Dale Rahn
This is working with udma on a 12" PBG4, but dma is disabled for now, too many hardcoded values. 'wdc...flags 0x1' will enable it.
2003-06-043/4 cleanup for aaronTheo de Raadt
2003-06-03kill clause 3 and 4 from several of my copyrights, cleanup.Dale Rahn
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.