History log of /src/sys/arch/usermode/dev/mainbus.c |
Revision | | Date | Author | Comments |
1.12 |
| 07-Aug-2021 |
thorpej | Merge thorpej-cfargs2.
|
1.11 |
| 24-Apr-2021 |
thorpej | branches: 1.11.8; Merge thorpej-cfargs branch:
Simplify and make extensible the config_search() / config_found() / config_attach() interfaces: rather than having different variants for which arguments you want pass along, just have a single call that takes a variadic list of tag-value arguments.
Adjust all call sites: - Simplify wherever possible; don't pass along arguments that aren't actually needed. - Don't be explicit about what interface attribute is attaching if the device only has one. (More simplification.) - Add a config_probe() function to be used in indirect configuiration situations, making is visibly easier to see when indirect config is in play, and allowing for future change in semantics. (As of now, this is just a wrapper around config_match(), but that is an implementation detail.)
Remove unnecessary or redundant interface attributes where they're not needed.
There are currently 5 "cfargs" defined: - CFARG_SUBMATCH (submatch function for direct config) - CFARG_SEARCH (search function for indirect config) - CFARG_IATTR (interface attribte) - CFARG_LOCATORS (locators array) - CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)
...and a sentinel value CFARG_EOL.
Add some extra sanity checking to ensure that interface attributes aren't ambiguous.
Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark ports to associate those device handles with device_t instance. This will trickle trough to more places over time (need back-end for pre-OFW Sun OBP; any others?).
|
1.10 |
| 05-Jun-2018 |
reinoud | branches: 1.10.16; Add ATAPI passtrough support giving the NetBSD/usermode kernel full control of an ATAPI device. All ATAPI/SCSI commands are passed trough.
Note that ATAPI/SCSI calls are made in the foreground still. Lengthy calls will still hug the CPU until completion. Making it asynchronous is in the pipeline
|
1.9 |
| 07-Jan-2012 |
jmcneill | branches: 1.9.46; support multiple disk images (pass multiple disk=<path> parameters on the command-line). while changing command-line params, rename tap= option to net=
|
1.8 |
| 29-Dec-2011 |
jmcneill | Replace the SDL based genfb driver with a wsdisplay and wskbd driver that implements the VNC (RFB) protocol.
To enable the VNC server, add 'vnc=640x480,5900' to the kernel command line (where 640x480 is the desired fb resolution and 5900 is the TCP port).
Screenshot of it here: http://www.netbsd.org/~jmcneill/usermode.tiff
|
1.7 |
| 26-Dec-2011 |
jmcneill | add vaudio(4) audio device driver
|
1.6 |
| 26-Dec-2011 |
jmcneill | first cut at networking support for usermode, doesn't fully work yet but enough to get an address with dhcp and answer arps
|
1.5 |
| 25-Aug-2011 |
jmcneill | branches: 1.5.2; 1.5.6; - build thunk code with warnings - add option SDL which pulls in thunk_sdl code and links the kernel to libSDL - add an experimental framebuffer driver based on thunk_sdl, enable with: options SDL genfb* at mainbus? wsdisplay* at genfb? options WS_KERNEL_FG=WSCOL_GREEN options WSEMUL_VT100 - reserve a major # for wsdisplay - add thunk_getenv()
|
1.4 |
| 12-Aug-2011 |
jmcneill | add a simple disk driver, pass the path to the disk image on the kernel command line:
soundwave$ ./netbsd /tmp/test.fs NetBSD/usermode startup [...] ld0 at mainbus0: /tmp/test.fs (33554432) ld0: 32768 KB, 8322 cyl, 64 head, 63 sec, 1 bytes/sect x 33554432 sectors boot device: ld0 root on ld0a dumps on ld0b
|
1.3 |
| 27-Nov-2009 |
rmind | - Use uvm_lwp_setuarea() instead of directly setting address to lwp_t::l_addr. - Replace most remaining uses of l_addr with uvm_lwp_getuarea() or lwp_getpcb(). - Amend assembly in ports where it accesses PCB via struct user. - Rename L_ADDR to L_PCB in few places. Reduce sys/user.h inclusions.
|
1.2 |
| 21-Oct-2009 |
snj | Drop 3rd and 4th clauses. OK jmcneill (copyright holder).
|
1.1 |
| 29-Dec-2007 |
jmcneill | branches: 1.1.2; 1.1.4; 1.1.6; 1.1.8; 1.1.18; Import work-in-progress NetBSD/usermode port.
|
1.1.18.1 |
| 11-Mar-2010 |
yamt | sync with head
|
1.1.8.2 |
| 18-Feb-2008 |
mjf | Sync with HEAD.
|
1.1.8.1 |
| 29-Dec-2007 |
mjf | file mainbus.c was added on branch mjf-devfs on 2008-02-18 21:05:12 +0000
|
1.1.6.2 |
| 21-Jan-2008 |
yamt | sync with head
|
1.1.6.1 |
| 29-Dec-2007 |
yamt | file mainbus.c was added on branch yamt-lazymbuf on 2008-01-21 09:39:45 +0000
|
1.1.4.2 |
| 09-Jan-2008 |
matt | sync with HEAD
|
1.1.4.1 |
| 29-Dec-2007 |
matt | file mainbus.c was added on branch matt-armv6 on 2008-01-09 01:49:20 +0000
|
1.1.2.2 |
| 02-Jan-2008 |
bouyer | Sync with HEAD
|
1.1.2.1 |
| 29-Dec-2007 |
bouyer | file mainbus.c was added on branch bouyer-xeni386 on 2008-01-02 21:50:44 +0000
|
1.5.6.1 |
| 18-Feb-2012 |
mrg | merge to -current.
|
1.5.2.1 |
| 17-Apr-2012 |
yamt | sync with head
|
1.9.46.1 |
| 25-Jun-2018 |
pgoyette | Sync with HEAD
|
1.10.16.1 |
| 23-Mar-2021 |
thorpej | Convert config_found_ia() call sites where the device only carries a single interface attribute to bare config_found() calls.
|
1.11.8.1 |
| 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|