summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/dev
AgeCommit message (Collapse)Author
2005-04-15make sure aligment does not return zero block sizeMichael Shalayeff
2005-04-11Handle commands failure correctly.Miod Vallat
2005-03-29Add an apm interface to the tctrl(4) device found on SPARCbooks; currentlyMiod Vallat
limited to power change events and battery status retrieval. ok deraadt@ mickey@
2005-03-29If a tctrl device is attached, run the keyboard bell through it, since theMiod Vallat
keyboard on SPARCbooks lacks a speaker.
2005-03-29Display the PCMCIA icon when cards are plugged.Miod Vallat
2005-03-29A few tctrl improvements, mostly adapted from NetBSD:Miod Vallat
- use a better state machine, and define a simple internal interface to send commands to the microcontroller. - program the 2nd line of the LCD screen; currently limited to the ``external power available'' and ``PCMCIA'' icons. - fix races in the brightness adjustement and powerdown request. - wrap initial dmesg output at 80 chars.
2005-03-26Use the PROM font whenever possible, rather than switching to theMiod Vallat
not-so-nice 8x16 font upon attach. Also, shift the display two character cells to the left from its centered position in this case, so as to keep our output properly aligned with the PROM messages. Tested on 3GS and 3GX.
2005-03-23Set up a shutdown hook to put the display back to a PROM-compatible modeMiod Vallat
at shutdown if necessary.
2005-03-23Do not bzero() too far when setting up 32-bit mode.Miod Vallat
2005-03-23Move the alloc_screen, free_screen and show_screen wsdisplay accessops toMiod Vallat
the common frame buffer code, rather than duplicating it in every driver. No functional change.
2005-03-23Do not set up accelerated operations if we fail to unbusy the blitter inMiod Vallat
a reasonable amount of time.
2005-03-23Move wzero() and wcopy() from machdep.c to where they are really used.Miod Vallat
2005-03-23Match power on the SPARCbook's auxio2, but prefer tctrl poweroff ifMiod Vallat
both power0 and tctrl0 are configured. This allows installation media to poweroff quickly on SPARCbooks.
2005-03-23Kill the sparc-specific mountroot hooks (which are run before the rootMiod Vallat
filesystem is mounted, unlike the MI mountroot hooks). They were only used to allow root on floppy in the long dead two-floppies installation method.
2005-03-15A potpourri of cgfourteen fixes and improvements:Miod Vallat
- use the autoincremented luts for faster colormap programming. - colormap changes are now deferred to the vertical retrace interrupt, causes less display flickering under X11 (still some visible at boot time because interrupts are disabled at this point). - if the resolution choosen does not allow the VSIMM to run in 32bit mode, do not allow mmap()ing past the frame buffer area. - print the VSIMM revision at boot time, and be more friendly to revision 0, which needs to be handled in a slightly different way.
2005-03-15Take care of updating the PROMs view of the cursor position in the common fbMiod Vallat
code, rather than doing this in only a subset of the fb drivers.
2005-03-13Add missed WSDISPLAYIO_[GS]VIDEO ioctl handling.Miod Vallat
2005-03-12Do not drop the user in ddb in DIAGNOSTIC checks unless option FD_DEBUG.Miod Vallat
2005-03-07- Match PGI,tvthree (similar frame buffer capacities)Miod Vallat
- Correctly handle invalid freqcode position 6.
2005-03-07Do not bother passing the blanking routine to fbwscons_console_init(),Miod Vallat
as fbwscons_attach() can find it on its own.
2005-03-07Shorten dmesg on ss4.Miod Vallat
2005-03-06Shorten dmesg if no keyboard is plugged.Miod Vallat
2005-03-03Sync a few comments with reality.Miod Vallat
2005-03-03Do not attempt to read past firmware data in rfx_initialize().Miod Vallat
2005-03-02Support for SUNW,fas SCSI, currently restricted to the lower 8 targets dueMiod Vallat
to MI esp code limitations. ok deraadt@
2005-03-01Print display resolution as %dx%d, not %d x %d.Miod Vallat
2005-02-27Move wsdisplay-only prototypes declarations in the #if NWSDISPLAY > 0 blockMiod Vallat
so that kernels with no frame buffer drivers can compile; spotted by marc@
2005-02-27Use the DMA defines from dev/ic/lsi64854reg.h whenever possible; no functionalMiod Vallat
change. ok deraadt@
2005-02-22add hme(4) RX TCP/UDP checksum offloadBrad Smith
Based on a diff posted to sparc@ by Pyun YongHyeon
2005-02-22Allow SUN4 kernels to compile; spotted by marc@Miod Vallat
2005-01-27Add pcmcia_intr_string() to format the intr string for pcmcia attachTodd C. Miller
routines.
2005-01-15make sure interface is in RUNNING state before touching the multicast filtersBrad Smith
From NetBSD NetBSD PR 27678 for details ok mcbride@
2005-01-05Let wsdisplay drivers return zero for WSDISPLAYIO_[GS]VIDEO ioctls - mostMiod Vallat
of the work is done in the upper layer, but they get to see the ioctl, so don't always return an error.
2004-12-25Use list and queue macros where applicable to make the code easier to read;Miod Vallat
no functional change.
2004-11-29Move the struct wsscreen_descr from a per-driver global to a per-instanceMiod Vallat
field of the sunfb structure. This allows multiple instances of the same driver, but with different resolutions (such as a couple of vigra or a TGX cgsix and a TGX+ cgsix) to use distinct wsscreen_descr structures featuring different resolution information. Doing this allows more wsscreen_descr fiddling inside the sparc* fb api, and results in some code shrinkage (about 4KB on sparc GENERIC).
2004-11-29Spell precede correctly.Jonathan Gray
'looks fine' millert@, krw@. ok jmc@
2004-11-02KNF, constify structures, do not wrap the contents under #if NMAGMA > 0 asMiod Vallat
if we were still running in pre-4.4BSD config(9) times.
2004-09-29Switch sparc to evcount; ok deraadt@Miod Vallat
2004-09-28- Use ETHER_MAX_LEN + ETHER_VLAN_ENCAP_LEN instead of HME_MTUBrad Smith
- Use ETHER_CRC_POLY_LE instead of MC_POLY_LE from hmereg.h
2004-09-22Bring some enhancements and fixes to fdc(4) from NetBSD:Miod Vallat
- better state machine, will prevent "eject fd0" with an empty drive to spin. - will not attach fd children to fdc if no floppy drive is present (though the PROM usually finds this for us). - use biowait() in fdformat() instead of rolling our own. - drop 5"1/4 formats table. - cope with non 512 bytes per sector formats.
2004-08-08do not reset the chip (and subsequently the phy) when unnecessary; that is,Brad Smith
for address changes, multicast filter changes, or adjusting promiscuous mode. Fixes resetting the phy for things like start/stopping tcpdump. From NetBSD tested by me, miod@, otto@ and a few others. ok deraadt@
2004-07-26Remove orphaned prototypes.Miod Vallat
2004-06-20zx(4) support for sparc64, tested on an Ultra 2.Miod Vallat
2004-05-12if tctrl not there, still let this compile; miod okTheo de Raadt
2004-05-10When external power is not available, the tadpole video hardware getsMiod Vallat
stuck in a weird mode, where not all acceleration functions are available, and I could not figure out how to reset the chip strongly enough to leave this mode. Try to compensate by checking whether the external power has been removed, when we set up the accelerated rasops (this will not cope with power being removed after bootup, yet).
2004-05-09Replace the event queue with a bit mask of slots needing attention, asMiod Vallat
done in stp(4).
2004-05-04Remove useless ``elm'' argument from the SIMPLEQ_REMOVE_HEAD macro.Alexander Yurchenko
This matches our SLIST behaviour and NetBSD's SIMPLEQ as well. ok millert krw deraadt
2004-04-12removeable -> removable;Jason McIntyre
ok deraadt@ beck@
2004-04-02remove pk from copyright, seen in netbsdTheo de Raadt
2004-03-09Real, inverted, cursor.Miod Vallat