summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/dev
AgeCommit message (Collapse)Author
2006-12-27Add code to change video mode (resolution and color depth) on the fly forMiod Vallat
pnozz(4), when switching between emulation (i.e. text console) and mapped (i.e. X11) modes. Geometries different than 800x600 are only available on the external video port, with the internal panel blanked. Currently this mode is compiled in, until an interface allows the X server and the kernel to settle on which one to use. Due to the internal panel blanking requirements, all of this is only available if tctrl(4) is configured in, which is the case for GENERIC but not for installation media kernels (who runs X11 with installation media anyway?) Most of this has been written 18 months ago, it was just lacking a final touch...
2006-12-13Remove the dma_eop callback in the ncr5380 driver md attachment, it was alwaysMiod Vallat
doing nothing and the mi code does not use it anymore anyway. No functional change.
2006-12-10Delay two seconds after board reset before trying to probe scsi devices.Miod Vallat
2006-12-10Allow ``flags 0'' to work to disable DMA for si(4) and sw(4) - it would getMiod Vallat
ignored previously.
2006-12-03Change cgeight to run the console in the monochrome overlay plane (as cgtwelveMiod Vallat
does), and only use the 24 bit color planes when running X. Not tested, but can't be worse than before - the code it replaces was busted anyway.
2006-12-03In fb_setsize(), remove dead code in the SUN4 case.Miod Vallat
2006-12-03Instead of invoking rasops_init with a wrong depth value to have someMiod Vallat
values computed better, prefer invoking it with the real thing and recomputing what needs to be afterwards. No functional change, but this allows fb.c to assume a few things about its callers.
2006-12-03Do the ri_devcmap reprogramming dance in fbwscons_init(), so that it appliesMiod Vallat
to non-console frame buffers as well.
2006-12-03Initialize more fields of the proto disklabel before invoking readdisklabel(),Miod Vallat
to pass its recent sanity checks.
2006-12-03Enable all color planes on attach and wait for retrace to program theMiod Vallat
colormap, this finally makes color work.
2006-12-03Clean frame buffer attachment code:Miod Vallat
- There is no need to check for buses config(8) will not let us attach to - Better P4 bus logic, which does not need to abuse device flags - Do not bother trying to print a meaningful device description when it is not connected to sbus.
2006-12-03Revert r1.35 (ether_input to ether_input_mbuf conversion), this causesMiod Vallat
unaligned accesses on some packets.
2006-12-02Fix ri_devcmap[] to allow WSCOL_BLACK and WSCOL_WHITE to not have to beMiod Vallat
different for sparc{,64} systems.
2006-12-02Use ri_devcmap to get corrected color values, instead of directly usingMiod Vallat
WSCOL_xxxx values.
2006-12-02Use the unpack_attr emulops instead of doing an inline rasops_unpack_attr.Miod Vallat
2006-11-29Add an unpack_attr function to struct wsdisplay_emulops, to match theMiod Vallat
existing alloc_attr function. This allows rasops_unpack_attr to be kept private to rasops, yet available to the screen drivers.
2006-11-29Kernel stack can be swapped. This means that stuff that's on the stackMiod Vallat
should never be referenced outside the context of the process to which this stack belongs unless we do the PHOLD/PRELE dance. Loads of code doesn't follow the rules here. Instead of trying to track down all offenders and fix this hairy situation, it makes much more sense to not swap kernel stacks. From art@, tested by many some time ago.
2006-11-29Add a new member to struct wsemuldisplaydev_attach_args, for a frame bufferMiod Vallat
driver to be able to tell how many wscons screens to attach to it, instead of WSDISPLAY_DEFAULTSCREENS which is a global setting.
2006-11-28give scsi controllers a real attach args to fill in when attaching scsibus.David Gwynne
ok miod@ marco@ deraadt@
2006-10-27If the lid is closed during boot, blank screen immediately.Miod Vallat
2006-09-26Zap D_REMOVABLE flag from disklabel. If you didn't already know thatKenneth R Westerback
floppies and cd's were removable, displaying that fact in disklabel output was unlikely to help. And the display in disklabel was the only use of D_REMOVABLE in the tree. ok marco@
2006-09-24Eliminate D_CHAIN, D_ECC and D_RAMDISK flags from disklabel. They wereKenneth R Westerback
not being used in the tree for anything obviously useful. Get it done early so we can find if there are non-obvious uses out there. ok deraadt@ beck@
2006-09-17No need to check for both cd_devs != NULL && cd_ndevs != 0, since the latterMiod Vallat
implies the former; no functional change.
2006-08-17(128 << fd->sc_type->secsize) instead of (128 * (1 << fd->sc_type->secsize)).Kenneth R Westerback
Makes all FD_BSIZE() defines the same. No object code change.
2006-08-14Fix 640x480 mode operation (needs a font change, and stride is larger thanMiod Vallat
width in this mode).
2006-08-14Now that DEV_BSIZE is universally defined as 1 << DEV_BSHIFT, use it toKenneth R Westerback
set d_secsize instead of 1 << DEV_BSHIFT. Just for textual consistency in setting d_secsize. No functional change.
2006-08-12Setting d_secsize to DEV_BSIZE (or 1 << DEV_BSHIFT, or 512) and thenKenneth R Westerback
setting RAW_PART's p_size to d_secperunit * (d_secsize / DEV_BSIZE) is a waste of a few ops. And p_size should be in sectors anyway. Just set RAW_PART's p_size to d_secperunit to make usage consistant across the tree. Should be a no-op.
2006-08-11An old dvorak typo was lurking here.Miod Vallat
2006-08-01make this more like a real cylon mode (no pauses at the end!)Theo de Raadt
2006-07-25Do not bother reading the existing colormap on attach, since we willMiod Vallat
override it with the rasops one.
2006-07-20fix various ways of spelling 'access' wrong in commentsMartin Reindl
2006-07-01Provide our own alloc_attr() routine for sun frame buffer, since the computationMiod Vallat
of highlighted color indexes is slightly different due to different black and white color code (and the fact that the default white is the highlighted white).
2006-06-30For 32bit sun frame buffers, tweak ri_devcmap to get the BoW palette insteadMiod Vallat
of needing different WSCOL_{BLACK,WHITE} values than 8bit frame buffers. This allows us to not special case the alloc_attr() invocations depending on the color depth, and to make WSCOL_{BLACK,WHITE} constants again in the wsemul_sun land.
2006-06-29No need to keep specific variables for the kernel messages colors on sunMiod Vallat
emulation, we can reuse the existing WSCOL_xxx codes, and WSCOL_BLACK and WSCOL_WHITE will point to variables anyway.
2006-06-29Map the correct size for the colormap registers (not that it really mattersMiod Vallat
since this is rounded up one page).
2006-06-25fix a typo in a comment and add the comment to the sparc hme driver.Brad Smith
2006-06-02sbus_establish() and the associated linked list in the sbus softc is now onlyMiod Vallat
used to store a per-device reset callback, for use in sbusreset(). Except sbusreset() has never, ever, been used since Torek's sbus code went in. Time to recycle those wasted bits.
2006-06-02When trying to find leaf lebuffer devices, to work around broken old PROMs,Miod Vallat
walk the lebuffer_cd device list, instead of the sbus children list.
2006-05-27unknown ioctl is ENOTTY not EINVALJason Wright
2006-04-29fix build after timestamping addition; sparc pointed out by pvalchev@Christian Weisgerber
2006-04-272 lines of code in most drivers, to do the timestamping; ok miod kettenisTheo de Raadt
2006-04-16Convert the last remaining net-driver users of ether_input to ether_input_mbuf.Christopher Pascoe
sgec ok martin@ if_ie ok miod@ if_de, if_hp not in GENERIC ok brad@
2006-03-25allow bpf(4) to ignore packets based on their direction (inbound orDamien Miller
outbound), using a new BIOCSDIRFILT ioctl; guidance, feedback and ok canacar@
2006-03-15Nuke dk_establish(), no longer used.Miod Vallat
2006-03-15Entries in cd_devs[] may be NULL, so be sure to check for them in yourMiod Vallat
device open() function.
2006-03-12Previous fix was half-done, move the wsscreen_list array into the softcMiod Vallat
as well.
2006-03-12When attaching a wsdisplay, the wsscreen_list structure can not be on theMiod Vallat
stack; found the hard way by Stefano <stefano@merlinobbs.net>.
2006-03-04These devices are DV_DULL, not DV_IFNET... not that it really matters.Miod Vallat
2006-03-04Properly display underlined space characters.Miod Vallat
2006-02-25Put quotation marks around names of unconfigured devices.Mark Kettenis
ok deraadt@