Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Updated #includes to 4.4Lite style. | bde | 1996-09-10 | 1 | -2/+1 |
| | |||||
* | Switched from using devfs_add_sw() to using devfs_add_swf() | scrappy | 1996-03-28 | 1 | -5/+3 |
| | | | | Reviewed by: julian@freebsd.org | ||||
* | Fix the isa_device table (lkm): id_irq and id_maddr must be 0. | jmz | 1996-03-16 | 1 | -1/+1 |
| | | | | Pointed out by: bde | ||||
* | Add code to make it a loadable kernel module | jmz | 1996-03-15 | 1 | -0/+46 |
| | |||||
* | Completed function declarations and/or added prototypes and/or added | bde | 1995-12-15 | 1 | -3/+2 |
| | | | | #includes to get prototypes. | ||||
* | Staticize and cleanup. | phk | 1995-12-10 | 1 | -3/+4 |
| | |||||
* | Julian forgot to make the *devsw structures static. | phk | 1995-12-08 | 1 | -1/+1 |
| | |||||
* | Pass 3 of the great devsw changes | julian | 1995-12-08 | 1 | -34/+38 |
| | | | | | | | | | | | | | | | | | | | | | | | most devsw referenced functions are now static, as they are in the same file as their devsw structure. I've also added DEVFS support for nearly every device in the system, however many of the devices have 'incorrect' names under DEVFS because I couldn't quickly work out the correct naming conventions. (but devfs won't be coming on line for a month or so anyhow so that doesn't matter) If you "OWN" a device which would normally have an entry in /dev then search for the devfs_add_devsw() entries and munge to make them right.. check out similar devices to see what I might have done in them in you can't see what's going on.. for a laugh compare conf.c conf.h defore and after... :) I have not doen DEVFS entries for any DISKSLICE devices yet as that will be a much more complicated job.. (pass 5 :) pass 4 will be to make the devsw tables of type (cdevsw * ) rather than (cdevsw) seems to work here.. complaints to the usual places.. :) | ||||
* | If you're going to mechanically replicate something in 50 files | julian | 1995-11-29 | 1 | -1/+1 |
| | | | | it's best to not have a (compiles cleanly) typo in it! (sigh) | ||||
* | OK, that's it.. | julian | 1995-11-29 | 1 | -14/+23 |
| | | | | | | | | | | | | | | | | | | | | | | | | That's EVERY SINGLE driver that has an entry in conf.c.. my next trick will be to define cdevsw[] and bdevsw[] as empty arrays and remove all those DAMNED defines as well.. Each of these drivers has a SYSINIT linker set entry that comes in very early.. and asks teh driver to add it's own entry to the two devsw[] tables. some slight reworking of the commits from yesterday (added the SYSINIT stuff and some usually wrong but token DEVFS entries to all these devices. BTW does anyone know where the 'ata' entries in conf.c actually reside? seems we don't actually have a 'ataopen() etc... If you want to add a new device in conf.c please make sure I know so I can keep it up to date too.. as before, this is all dependent on #if defined(JREMOD) (and #ifdef DEVFS in parts) | ||||
* | the second set of changes in a move towards getting devices to be | julian | 1995-11-28 | 1 | -0/+33 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | totally dynamic. this is only the devices in i386/isa I'll do more tomorrow. they're completely masked by #ifdef JREMOD at this stage... the eventual aim is that every driver will do a SYSINIT at startup BEFORE the probes, which will effectively link it into the devsw tables etc. If I'd thought about it more I'd have put that in in this set (damn) The ioconf lines generated by config will also end up in the device's own scope as well, so ioconf.c will eventually be gutted the SYSINIT call to the driver will include a phase where the driver links it's ioconf line into a chain of such. when this phase is done then the user can modify them with the boot: -c config menu if he wants, just like now.. config will put the config lines out in the .h file (e.g. in aha.h will be the addresses for the aha driver to look.) as I said this is a very small first step.. the aim of THIS set of edits is to not have to edit conf.c at all when adding a new device.. the tabe will be a simple skeleton.. when this is done, it will allow other changes to be made, all teh time still having a fully working kernel tree, but the logical outcome is the complete REMOVAL of the devsw tables. By the end of this, linked in drivers will be exactly the same as run-time loaded drivers, except they JUST HAPPEN to already be linked and present at startup.. the SYSINIT calls will be the equivalent of the "init" call made to a newly loaded driver in every respect. For this edit, each of the files has the following code inserted into it: obviously, tailored to suit.. ----------------------somewhere at the top: #ifdef JREMOD #include <sys/conf.h> #define CDEV_MAJOR 13 #define BDEV_MAJOR 4 static void sd_devsw_install(); #endif /*JREMOD */ ---------------------somewhere that's run during bootup: EVENTUALLY a SYSINIT #ifdef JREMOD sd_devsw_install(); #endif /*JREMOD*/ -----------------------at the bottom: #ifdef JREMOD struct bdevsw sd_bdevsw = { sdopen, sdclose, sdstrategy, sdioctl, /*4*/ sddump, sdsize, 0 }; struct cdevsw sd_cdevsw = { sdopen, sdclose, rawread, rawwrite, /*13*/ sdioctl, nostop, nullreset, nodevtotty,/* sd */ seltrue, nommap, sdstrategy }; static sd_devsw_installed = 0; static void sd_devsw_install() { dev_t descript; if( ! sd_devsw_installed ) { descript = makedev(CDEV_MAJOR,0); cdevsw_add(&descript,&sd_cdevsw,NULL); #if defined(BDEV_MAJOR) descript = makedev(BDEV_MAJOR,0); bdevsw_add(&descript,&sd_bdevsw,NULL); #endif /*BDEV_MAJOR*/ sd_devsw_installed = 1; } } #endif /* JREMOD */ | ||||
* | Actually, 97 out of 304 devsw functions had benignly mismatched types. | bde | 1995-09-08 | 1 | -2/+2 |
| | |||||
* | Remove trailing whitespace. | rgrimes | 1995-05-30 | 1 | -6/+6 |
| | |||||
* | Add and move declarations to fix all of the warnings from `gcc -Wimplicit' | bde | 1995-03-28 | 1 | -3/+3 |
| | | | | | (except in netccitt, netiso and netns) that I didn't notice when I fixed "all" such warnings before. | ||||
* | Replace all remaining instances of `i386/include' by `machine' and fix | bde | 1995-02-26 | 1 | -4/+6 |
| | | | | nearby #include inconsistencies. | ||||
* | Put the joystick status in a struct {int x, y, b1, b2;} rather than in a | jmz | 1995-02-22 | 1 | -6/+6 |
| | | | | | dummy array of 4 integers. Declare the struct in the header file and update the man page. | ||||
* | Add parentheses around macros! | jmz | 1995-01-29 | 1 | -2/+2 |
| | |||||
* | Do not recompute TIMER0's maximum count, since it is in timer0_max_count. | jmz | 1995-01-28 | 1 | -11/+8 |
| | | | | | | Use a simpler formula to convert usecs to ticks. Output is in microseconds instead of ticks, so that values do not depend on the timer frequency. | ||||
* | Changed address of the game controller to 0x201 (was 0x200) | jmz | 1995-01-25 | 1 | -0/+209 |
joy.c: joystick driver |