summaryrefslogtreecommitdiff
path: root/sys/arch/sparc
AgeCommit message (Collapse)Author
2006-12-27pnozz is initialized by the prom in 8bpp mode, so don't bring high-depthMiod Vallat
rasops code; 3.5KB off RAMDISK kernels.
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-24Define PROC_PC. Then, since profiling information is being reported inMiod Vallat
statclock(), do not bother doing this in userret() anymore. As a result, userret() does not need its pc and ticks arguments, simplify.
2006-12-24Check for want_resched when processing AST and nowhere else. But then, whenMiod Vallat
doing so, do not check for signals - userret() will do this.
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-10Fix typo in intersil clock programming.Miod Vallat
2006-12-09Do not make sun terminal emulation selected by the wsemul_sun frame bufferMiod Vallat
attribute anymore; remove it and use option WSEMUL_SUN instead, which gets added to all sparc* kernels. While there, do not compile vt100 emulation on sparc* kernels, this saves 16+ KB of text. ok deraadt@
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-12-02zx needs rasops8 code for emulation modes, not rasops32.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-29Remove cpu_swapin() and cpu_swapout(), they are no longer necessary (exceptMiod Vallat
for cpu_swapin() on hppa* which is kept).
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-11-28rename scsibus_attach_args to scsi_attach_args. this can help avoidDavid Gwynne
confusing when trying to attach scsibus to a hba, since it is really meant for attaching scsi devices to scsibus. ok deraadt@ marco@
2006-10-27If the lid is closed during boot, blank screen immediately.Miod Vallat
2006-10-21Some KNF cleanup.Kenneth R Westerback
De-register. Move declaration to top of function for DOS MBR processing. Indent nit in macppc. No functional change.
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-09-17Time to leave the bus.Miod Vallat
2006-08-17Check d_secpercyl in all readdisklable() functions, and have all ofKenneth R Westerback
them return 'invalid geometry' when d_secpercyl == 0. While there move the check to a consistant location (after the check of d_secperunit) and use a consistant idiom (i.e. some readdisklabel()'s have no 'done' label). prodded by thib@ after a bad macppc experience. ok deraadt@
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-12Make all DEV_BSIZE definitions consistant by using (1 << DEV_BSHIFT)Kenneth R Westerback
in the six cases using "512". As DEV_BSHIFT is always 9, this should be a no-op. "no objections" miod@ "I can't see any problem doing this." pedro@
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-11Use d_secperunit rather than 0x1fffffff as the default value forKenneth R Westerback
RAW_PART's p_size. Since d_secperunit is initialized to 0x1fffffff if not specified there should be no need to use the magic number again. And if d_secperunit was specified then that value should be used instead of the magic number. This was already being done for hp300, luna88k, mac68k, mvme68k, mvme88k. 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-27Compile all kernels with -Wstack-usage-larger-than-2047, now that allMiod Vallat
offending code has been taken out and shot. ok deraadt@
2006-07-25Do not bother reading the existing colormap on attach, since we willMiod Vallat
override it with the rasops one.
2006-07-24move large local array out of a "called once, only at boot" functionTheo de Raadt
into being a global, to reduce stack size; ok miod
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-29If invoking mapdev() with a non-aligned pa, make sure we allocate enough pagesMiod Vallat
if we cross a page boundary; really only necessary for some sun4 tricky attachments, no functional change.