| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
miod explained it was initially a long as it was thought drivers may
need to allocate storage but in practice they don't need more than
32 bits for an attribute.
suggested and reviewed by miod@
|
|
|
|
|
|
|
|
| |
Suggested by John Carmack. miod agrees a rename would make sense and
explained it was initially thought drivers may need to allocate storage
but in practice they don't need more than 32 bits for an attribute.
ok mpi@
|
|
|
|
| |
fix from C Turt, ok miod
|
| |
|
|
|
|
|
|
|
|
|
| |
based upon the old HP ngle X11 driver. Currently limited to CRX (720/735/750),
Timber (710, old 715), Artist (712, 715) and EG (B-series), however the
colormap isn't set up correctly on Timber and EG yet.
Joint work with Artem Falcon, now in good enough shape to be worked further
in the tree.
|
|
|
|
|
|
|
| |
loop for WSDISPLAYIO_PUTCMAP ioctl with idx == 0; reported by Artem Falcon.
[according to my investigation, none of the other for() loops in the kernel
are affected by a similar issue]
|
|
|
|
|
|
|
| |
PROT_NONE, PROT_READ, PROT_WRITE, and PROT_EXEC from mman.h.
PROT_MASK is introduced as the one true way of extracting those bits.
Remove UVM_ADV_* wrapper, using the standard names.
ok doug guenther kettenis
|
| |
|
|
|
|
| |
after discussions with beck deraadt kettenis.
|
|
|
|
|
|
| |
<uvm/uvm.h> if possible and remove double inclusions.
ok beck@, mlarkin@, deraadt@
|
|
|
|
|
|
|
| |
this hardware alive is becoming increasingly difficult, and I should heed the
message sent by the three disks which have died on me over the last few days.
Noone sane will mourn these ports anyway. So long, and thanks for the fish.
|
| |
|
|
|
|
|
|
| |
hardware.
ok dlg@, jmatthew@
|
|
|
|
| |
No functional change.
|
|
|
|
|
|
|
|
|
| |
requested character in the font it is using, it suggests a question mark
character, instead of a space, so that the existence of the non-representable
character becomes visible.
Note that this is consistent with pcdisplay which suggests a diamond for
missing glyphs.
|
|
|
|
|
| |
makes programs like less and mg look a wee bit prettier
ok miod
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
in DIO-II space, as a fat device spanning four select codes (i.e. 16MB of
memory). This is way too much for an at-most 2 Mpixel 8bit frame buffer, and
it turns out that this is because the device provides both a regular DIO-II
frame buffer (spanning two select codes) and a regular STI frame buffer
(spanning the other two select codes).
This commit introduces a straightforward sti@dio attachment to get a working
sti(4) and wsdisplay(4) in a ridiculously small number of lines; however
the console code needs some changes to avoid duplicating globals.
While there, add sti@dio support for the bootblocks, and I couldn't help
myself but clean the most rotten parts of them, and try to have them reuse
various files in sys/arch/hp300/dev instead of rolling their outdated ones.
Tested on a real 382 with the low-resolution frame buffer:
sti0 at dio0 scode 132: rev 8.02;129, ID 0x27134CB440A00499
sti0: 382V, 2048x512 frame buffer, 640x480x8 display
sti0: 8x16 font type 1, 16 bpc, charset 0-255
wsdisplay0 at sti0 mux 1: console (std, vt100 emulation)
Boot blocks updates tested on DIO-II 425t (serial/glass console), SGC 425e
(serial/glass console) and 382 (serial/glass console). And will be tested
on SGC 425t soon as well.
|
|
|
|
| |
ok matthew@ tedu@, also eyeballed by at least krw@ oga@ kettenis@ jsg@
|
|
|
|
|
|
| |
return zero on success and nonzero on failure.
This commit only performs mechanical changes for the existing emulops to
always return zero.
|
|
|
|
|
|
|
|
|
|
|
| |
information. This is preliminary work to help eventually supporting the
dual-head ELK model.
Also split the initialization code in several routines, this makes the
code easier to read, and makes it easier to release resources upon failure.
Finally, don't forget to clear the text planes on non-console displays
when initializing.
|
|
|
|
| |
with only one font (such as many 712 onboard graphics). Oops again (poukram).
|
|
|
|
| |
it's a can't happen situation.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
display resolution, and if one is found, pick the built-in font it points
to, instead of the first font from the list. If the index is wrong and the
font list is shorter, revert to the previous behaviour of using the first
ROM font.
This fixes the font discrepency on my B132L (INTERNAL_EG_1280) where PDC
would use the 10x20 font, which is third in the list, and OpenBSD would
use the 8x16 font instead.
Tested on byte- and word- roms, gsc and pci cards.
|
| |
|
|
|
|
|
|
| |
cards it is no longer the rom image. This lets sti@pci work on non-dino
bridges.
Found by and ok kettenis@
|
|
|
|
|
|
| |
sti_init(), for recent sti proms require them. Also, return a meaningful
error value.
ok kettenis@ mickey@
|
|
|
|
| |
resolutions to attach without disturbing each other.
|
|
|
|
|
|
|
|
| |
access to the sti rom, as this seems to be necessary for sti@pci; hide this
with macros so that platforms which do not have pci support (i.e. hp300)
do not get bloated from this.
ok mickey@
|
|
|
|
|
|
| |
sti_end_attach() if an error has occured.
ok mickey@
|
|
|
|
|
|
|
| |
bus_space_region, for they might lie on a bus with a different endianness than
the cpu.
ok mickey@
|
|
|
|
|
|
|
|
| |
instead of using the rom mapping for region #0 and the device mapping for
region #1. This will allow sti devices on which regions may be relative to
different origins to attach (to be used very soon).
ok mickey@
|
|
|
|
| |
font indicies whenever possible.
|
|
|
|
|
| |
existing alloc_attr function. This allows rasops_unpack_attr to be kept
private to rasops, yet available to the screen drivers.
|
|
|
|
| |
change within uvm without breaking code. From art@
|
|
|
|
|
| |
driver to be able to tell how many wscons screens to attach to it,
instead of WSDISPLAY_DEFAULTSCREENS which is a global setting.
|
|
|
|
| |
with scribbles around; ok mickey@
|
|
|
|
|
|
| |
use it instead of duplicating the same logic in 3 places.
ok mickey@
|
|
|
|
|
|
|
|
|
|
|
| |
attachment and interface, one screen-attached for the real work.
The attachment code is now required to decide whether sti_end_attach() is
run immediately, or as a startuphook.
This allows hp300 to initialize sti early, and use it as a console; hppa
is functionally unchanged, as it uses the PROM console until the root device
is mounted.
|
|
|
|
|
|
| |
- correct bounds checking in colormap ioctls.
- force the scment() pointer to NULL on < 8.04 revisions; 8.02 provide a
non-NULL pointer, but it does not point to any meaningful piece of code.
|
|
|
|
|
|
| |
cache bit set in the region descriptor. Halves sti processing time on hp300.
ok mickey@
|
|
|
|
|
|
|
|
| |
- specify which microcode bank (pa or m68k) to use at attachment time.
- compensate for broken 8.02 m68k code which reports wrong frame buffer
offset.
ok mickey@
|
|
|
|
|
| |
of the work is done in the upper layer, but they get to see the ioctl,
so don't always return an error.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Tom: I did not commit a couple of your changes.
i did not include some punctuation fixes (full stops, etc.)
mnemorable -> mnemonic: i decided memorable was probably better
instrunctions -> instruction: i kept the plural
|
| |
|
| |
|
| |
|