summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/dev
AgeCommit message (Collapse)Author
2007-10-08A few trailing bzero/memset -> M_ZERO occurrences, cast removal andKenneth R Westerback
size(*p) usage.
2007-10-01More easy bzero() -> M_ZERO. Use 'p = malloc(sizeof(*p) ...' whereKenneth R Westerback
obvious.
2007-07-13Reenable accelerated text console primitives on pnozz if running with aMiod Vallat
800x600 panel, and document the acceleration code as currently broken on 640x480 panels.
2007-07-01Use mapiodev() instead of mapdev() when applicable. This is just syntacticMiod Vallat
sugar.
2007-07-01Perform minimal disklabel setup without needing to do the disklabel_to_sun()Miod Vallat
dance, so that we do not depend on its behaviour. No functional change.
2007-07-01Do not define DEBUG unconditionnaly.Miod Vallat
2007-06-24Fix xd and xy disklabel handling.Miod Vallat
2007-06-20b_cylinder does not need to be set on the callpath down into drivers.Theo de Raadt
cpu_disklabel can go away, since nothing anymore needs to use it.. except these two drivers. knock out that code for now to let it compile while miod gets his fix ready for these drivers.
2007-06-20b_cylinder does not need to be set on the callpath down into drivers.Theo de Raadt
cpu_disklabel can go away, since nothing anymore needs to use it; ok miod
2007-06-15permit this to compile againTodd T. Fries
looks right krw@, Righto miod@
2007-06-09Silence a debug printf.Miod Vallat
2007-06-08all drivers should spoof version 1 labelsTheo de Raadt
2007-06-07another XXsize() botchTheo de Raadt
2007-06-07more XXsize() falloutTheo de Raadt
2007-06-07another XXsize() function forgottenTheo de Raadt
2007-06-06now that all partition size/offsets are potentially 64-bit, change theTheo de Raadt
type of all variables to daddr64_t. this includes the APIs for XXsize() and XXdump(), all range checks inside bio drivers, internal variables for disklabel handling, and even uvm's swap offsets. re-read numerous times by otto, miod, krw, thib to look for errors
2007-06-05use six new macros to access & store the 48-bit disklabel fields relatedTheo de Raadt
to size. tested on almost all machines, double checked by miod and krw next comes the type handling surrounding these values
2007-06-04Bring presto's readdisklabel() usage into line with other uses. i.e.Kenneth R Westerback
don't call it at attach but at open, so that the correct device can be used in the DISKLABELDEV() invocation. Commit and get into miod's test schedule. '... commit your diff ...' miod@
2007-06-01Don't initialize d_partitions[RAW_DISK] just before callingKenneth R Westerback
readdisklabel(), since all readdisklabel()'s do that already. ok deraadt@
2007-05-29use the right capitalization for `SBus'Igor Sobrado
ok jmc@
2007-05-29use the right capitalization for `MBus' and `SBus'Igor Sobrado
ok jmc@
2007-05-25"interupt" -> "interrupt" in various comments. Mostly from Diego Casati.Kenneth R Westerback
2007-04-29Replace expansions of DISKLABELDEV() with DISKLABELDEV(). Shorter, andKenneth R Westerback
more consistant. No change to code. ok miod@
2007-04-27Even floppies should use DISKLABELDEV() on the dev_t parameter toKenneth R Westerback
readdisklabel/writedisklabel. ok deraadt@ weingart@ conceptual ok drahn@
2007-04-10``it's'' -> ``its'' when the grammar gods require this change.Miod Vallat
2007-03-13When about to run X11 in 32 bpp mode, advertize correctly that we areMiod Vallat
really using 24 bpp pixels on 32 bit boundaries.
2007-02-25Disable acceleration by default; set device flags to a nonzero value toMiod Vallat
enable.
2007-02-18Display the interrupt priority in dmesg, for frame buffers which registerMiod Vallat
interrupt handlers.
2007-02-18Make it more apparent these boards have (crippled version of) vga-compatibleMiod Vallat
crtc. No functional change.
2007-02-15Don't print the error strings returned by readdisklabel(). If youKenneth R Westerback
need the debug info uncomment the printf's you need. Crude but effective way to suppress 'no disklabel' errors that pop up at the most innconvenient times to frighten users. More elegant method, DPRINTF-like constructs or something, later. "Yay!" marco@ ok deraadt@
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