fork of 9front i guess
Go to file
cinap_lenrek 2a1b43ad98 vga: make kernel vga drivers more stupid
previously, we had to maintain 3 sets of pci vid/did's:

1) in /lib/vgadb for detection
2) in the userspace driver in aux/vga
3) in the kernel mode driver

this change makes the kernel mode driver more dumb in
the cases where possible. we let userspace do the pci
enumeration and if needed, it can set the pci address
of the vga card. kernel mode drivers can assume to get
the right pci device passed in scr->pci for enable()
and linear() functions and just do very basic sanity
checking before mapping framebuffer and mmio regions.

vgalinearpciid() was removed as userspace is responsible
to pick pci device.

theres a new vgactl message "pcidev" where userspace
can set the bus address. we initialize scr->pci in
vgareset() to the first pci graphics card found. this
should cover cases when an old aux/vga binary is used
that doesnt use the new pcidev message.

userspace drivers will now use the pci device that got
a match from /lib/vgadb and skip ther own enumeration.
this way, vga cards can be made to work by simply adding
an entry in vgadb with no need to modify userspace or
kernelspace drivers. this is not always possible if
the driver derives information from the specific card
model.
2013-01-02 01:19:51 +01:00
386 remove .dummy files and replace it by sys/lib/rootstub script 2011-05-03 04:42:16 +00:00
68000 remove .dummy files and replace it by sys/lib/rootstub script 2011-05-03 04:42:16 +00:00
68020 remove .dummy files and replace it by sys/lib/rootstub script 2011-05-03 04:42:16 +00:00
acme fix permission for /acme/mkfile 2011-06-07 23:32:57 +00:00
adm/timezone Backed out changeset db0fa2edf131 2012-01-06 18:58:39 +01:00
alpha remove .dummy files and replace it by sys/lib/rootstub script 2011-05-03 04:42:16 +00:00
amd64 6c: extern register fix (import from patch/6c-extreg) 2012-09-18 18:18:43 +02:00
arm remove .dummy files and replace it by sys/lib/rootstub script 2011-05-03 04:42:16 +00:00
lib fortunes: I don't want Javascript promises 2012-12-31 19:55:26 -06:00
mips remove .dummy files and replace it by sys/lib/rootstub script 2011-05-03 04:42:16 +00:00
power remove .dummy files and replace it by sys/lib/rootstub script 2011-05-03 04:42:16 +00:00
power64 remove .dummy files and replace it by sys/lib/rootstub script 2011-05-03 04:42:16 +00:00
rc cpu: make incoming cpu connections work with aan(8) by default 2012-12-21 21:11:28 +01:00
sparc remove .dummy files and replace it by sys/lib/rootstub script 2011-05-03 04:42:16 +00:00
sparc64 remove .dummy files and replace it by sys/lib/rootstub script 2011-05-03 04:42:16 +00:00
sys vga: make kernel vga drivers more stupid 2013-01-02 01:19:51 +01:00
.hgignore hgignore: ignore more stuff 2012-07-03 03:48:57 +02:00