aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
Commit message (Collapse)AuthorAgeFilesLines
* Added prototype for fxp_scb_wait() and fixed a bug where the wrong pointerDavid Greenman1995-12-181-2/+3
| | | | | | | was passed in one case. Notes: svn path=/head/; revision=12915
* Staticize.Poul-Henning Kamp1995-12-171-13/+14
| | | | Notes: svn path=/head/; revision=12911
* Another shot at getting working si DEVFS entries.. Apparently, it didn'tPeter Wemm1995-12-161-10/+16
| | | | | | | understand %02d in it's format string... Notes: svn path=/head/; revision=12888
* Completed function declarations and/or added prototypes and/or addedBruce Evans1995-12-161-7/+15
| | | | | | | | | | | #includes to get prototypes. pci now uses a different interrupt handler type for interrupts that it dispatches and the isa interrupt handler type for the interrupts that it handles. Notes: svn path=/head/; revision=12879
* Fix the off-by-one error in the calculation of the valid port range.Stefan Eßer1995-12-151-4/+4
| | | | | | | | | | Reduce default value of pcicb_membase to 0x2000000 (from 0x4000000) since this seems to be the lower bound used by many systems. Submitted by: Mihoko Tanaka <m_tanaka@pa.yokogawa.co.jp> Notes: svn path=/head/; revision=12872
* Changed arg type for pio functions.David Greenman1995-12-151-10/+10
| | | | | | | Cast a few things appropriately to shut up the compiler. Notes: svn path=/head/; revision=12868
* Completed function declarations and/or added prototypes and/or addedBruce Evans1995-12-159-43/+92
| | | | | | | #includes to get prototypes. Notes: svn path=/head/; revision=12854
* Removed duplicated #includes of <sys/conf.h>Bruce Evans1995-12-151-2/+1
| | | | Notes: svn path=/head/; revision=12852
* Removed my devsw access functions [un]register_cdev() andBruce Evans1995-12-141-6/+9
| | | | | | | | | | | | | | | | | getmajorbyname() which were a better (sigh) temporary interface to the going-away devswitches. Note that SYSINIT()s to initialize the devswitches would be fatal in syscons.c and pcvt_drv.c (and are bogus elsewhere) because they get called independently of whether the device is attached; thus devices that share a major clobber each other's devswitch entries until the last one wins. conf.c: Removed stale #includes and comments. Notes: svn path=/head/; revision=12840
* Update the skeleton DEVFS code to match reality a little closer.. :-)Peter Wemm1995-12-141-20/+11
| | | | Notes: svn path=/head/; revision=12826
* Another mega commit to staticize things.Poul-Henning Kamp1995-12-142-5/+5
| | | | Notes: svn path=/head/; revision=12820
* A Major staticize sweep. Generates a couple of warnings that I'll dealPoul-Henning Kamp1995-12-141-3/+2
| | | | | | | | | with later. A number of unused vars removed. A number of unused procs removed or #ifdefed. Notes: svn path=/head/; revision=12819
* devsw tables are now arrays of POINTERS to struct [cb]devswJulian Elischer1995-12-131-1/+1
| | | | | | | | | | | | seems to work hre just fine though I can't check every file that changed due to limmited h/w, however I've checked enught to be petty happy withe hte code.. WARNING... struct lkm[mumble] has changed so it might be an idea to recompile any lkm related programs Notes: svn path=/head/; revision=12813
* Replaced nxreset by noreset (if the reset function gets called, then theBruce Evans1995-12-106-11/+11
| | | | | | | | | | device must be configured. It's hard to tell whether a reset function should be noreset or nullreset since reset functions are never called. Most drivers use nullreset but noreset has the advantage of complaining if somehow gets called). Notes: svn path=/head/; revision=12743
* Replaced nxmmap by nommap (if the mmap function gets called, then theBruce Evans1995-12-103-6/+6
| | | | | | | device must be configured). Notes: svn path=/head/; revision=12742
* Replaced scdsize by generic nopsize.Bruce Evans1995-12-101-9/+2
| | | | Notes: svn path=/head/; revision=12740
* Replaced nxdump by nodump (if the dump function gets called, then theBruce Evans1995-12-103-6/+6
| | | | | | | | | device must be configured, so ENXIO is a bogus errno). Replaced zerosize by nopsize. zerosize was a temporary alias. Notes: svn path=/head/; revision=12736
* Removed new alias d_size_t for d_psize_t.Bruce Evans1995-12-107-15/+15
| | | | | | | | | | | | | Removed old aliases d_rdwr_t and d_ttycv_t for d_read_t/d_write_t and d_devtotty_t. Sorted declarations of switch functions into switch order. Removed duplicated comments and declarations of nonexistent switch functions. Notes: svn path=/head/; revision=12731
* Staticize and cleanup.Poul-Henning Kamp1995-12-1019-204/+191
| | | | Notes: svn path=/head/; revision=12724
* Staticize and cleanup.Poul-Henning Kamp1995-12-101-13/+2
| | | | | | | Make debug variable sysctl aware in 1742. Notes: svn path=/head/; revision=12721
* Staticize.Poul-Henning Kamp1995-12-091-9/+6
| | | | Notes: svn path=/head/; revision=12700
* clean a few DEVFS things..Julian Elischer1995-12-091-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fix a bug where you couldn't place devices in the root directory of devfs remove deprecated routines On my machine devfs now shows: julian@erf.tfs.com: julian@erf.tfs.com: ls -RF bpf0 mem ptypb spkr ttyp8 bpf1 null ptypc stderr ttyp9 bpf2 pcaudio ptypd stdin ttypa bpf3 pcaudioctl ptype stdout ttypb console pt ptypf tty ttypc cuaa0 ptyp0 random ttyd0 ttypd cuaia0 ptyp1 rsd0 ttyid0 ttype cuala0 ptyp2 rsd1 ttyld0 ttypf fd/ ptyp3 rvn ttyp0 tun0 fd0.1440 ptyp4 rworm ttyp1 urandom fd1.1200 ptyp5 scsi/ ttyp2 vn io ptyp6 sd0 ttyp3 zero kmem ptyp7 sd1 ttyp4 lkm ptyp8 snp0 ttyp5 log ptyp9 snp1 ttyp6 lpt0 ptypa snp2 ttyp7 ./fd: 0 15 21 28 34 40 47 53 6 9 1 16 22 29 35 41 48 54 60 10 17 23 3 36 42 49 55 61 11 18 24 30 37 43 5 56 62 12 19 25 31 38 44 50 57 63 13 2 26 32 39 45 51 58 7 14 20 27 33 4 46 52 59 8 ./scsi: sctarg ssc julian@erf.tfs.com: which is all devices really there except for disk slices/partitions.. (if I don't have it it's not there, which has GOT to be an improvement..) no DEVFS fixes from device maintainers yet? Notes: svn path=/head/; revision=12691
* Julian forgot to make the *devsw structures static.Poul-Henning Kamp1995-12-0814-28/+28
| | | | Notes: svn path=/head/; revision=12678
* Pass 3 of the great devsw changesJulian Elischer1995-12-0815-462/+666
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.. :) Notes: svn path=/head/; revision=12675
* Untangled the vm.h include file spaghetti.David Greenman1995-12-076-9/+16
| | | | Notes: svn path=/head/; revision=12662
* Replaced #includes of <sys/user.h> by less gross headers, usuallyBruce Evans1995-12-063-6/+10
| | | | | | | | | | <sys/vm.h>. Many device drivers need only the definition of vtophys() from vm. Added nearby #includes of <sys/conf.h> where appropriate. Notes: svn path=/head/; revision=12659
* Removed unnecessary #includes of <sys/user.h>. Some of these were justBruce Evans1995-12-065-9/+5
| | | | | | | | | | to get the definitions of TRUE and FALSE which happen to be defined in a deeply nested include. Added nearby #includes of <sys/conf.h> where appropriate. Notes: svn path=/head/; revision=12658
* Set default burst length limit to 32 bytes, since this seems to beStefan Eßer1995-12-061-2/+3
| | | | | | | | | an acceptable value for all current chip sets (just a hint to PCI device drivers, used in the NCR driver, for example). Add PCI Vendor ID of ACER. Notes: svn path=/head/; revision=12651
* Updated my copyright.David Greenman1995-12-051-65/+95
| | | | | | | | | | | Fixed two cases of "=" that should have been "==" in card type comparison. Simplified expression that checks for interface up/down. Moved ed_ring_copy to before its first use so that it's inlined as intended. Change mbuf allocation policy so that a received packet is stored in just an mbuf header (no cluster) if it will fit in one. Notes: svn path=/head/; revision=12634
* Increased the number of Tx segments from 13 to 29 to reduce the need toDavid Greenman1995-12-052-8/+34
| | | | | | | | recopy to near zero. Wrote the necessary code to recopy the mbuf chain into another buffer if there are too many mbufs in the chain. Notes: svn path=/head/; revision=12633
* all:David Greenman1995-12-058-209/+144
| | | | | | | | | | | | | | | | | | | Removed ifnet.if_init and ifnet.if_reset as they are generally unused. Change the parameter passed to if_watchdog to be a ifnet * rather than a unit number. All of this is an attempt to move toward not needing an array of softc pointers (which is usually static in size) to point to the driver softc. if_ed.c: Changed some of the argument passing to some functions to make a little more sense. if_ep.c, if_vx.c: Killed completely bogus use of if_timer. It was being set in such a way that the interface was being reset once per second (blech!). Notes: svn path=/head/; revision=12628
* aargh! I tested JREMOD, only to discover that the "good oil" part ofPeter Wemm1995-12-041-3/+3
| | | | | | | it for si.c was accidently inside some #ifdef DEBUG code.... Notes: svn path=/head/; revision=12624
* Completed function declarations and/or added prototypes.Bruce Evans1995-12-021-0/+2
| | | | Notes: svn path=/head/; revision=12577
* Fix minor bug that would cause the packet statistics updates to stopDavid Greenman1995-12-011-24/+75
| | | | | | | | working under extremely rare circumstances. Also added some additional comments.. Notes: svn path=/head/; revision=12562
* Fix my color/attr separation patch.Andrey A. Chernov1995-11-301-3/+3
| | | | | | | Swap foreground/background logic to allow DIM REVERSE Notes: svn path=/head/; revision=12541
* Delete obnoxious uprintf()s in load/unload procedures.Garrett Wollman1995-11-295-15/+5
| | | | Notes: svn path=/head/; revision=12536
* Don't staticize again (twice).Bruce Evans1995-11-291-4/+5
| | | | | | | Cleaned up includes. Notes: svn path=/head/; revision=12530
* Removed builtin list of port addresses. The address for sio3Bruce Evans1995-11-291-10/+5
| | | | | | | | | | | | | conflicted with S3 graphics cards. Now users should put sio[2-3] in the config file if the hardware exisst, even if the probe is certain to fail due to an interrupt conflict. Otherwise, ports sharing the interrupt may fail the probe if the system is warm booted while sio[2-3] are active (perhaps under another OS). The same problem for nonstandard ports is now handled better than before. Notes: svn path=/head/; revision=12522
* If you're going to mechanically replicate something in 50 filesJulian Elischer1995-11-2913-22/+22
| | | | | | | it's best to not have a (compiles cleanly) typo in it! (sigh) Notes: svn path=/head/; revision=12521
* 'see" -> "see" (in the comment).Satoshi Asami1995-11-291-2/+2
| | | | | | | Noticed by: hilit19.el (stop laughing! ;) Notes: svn path=/head/; revision=12518
* OK, that's it..Julian Elischer1995-11-2913-155/+379
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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) Notes: svn path=/head/; revision=12517
* Staticize again.Poul-Henning Kamp1995-11-291-2/+2
| | | | Notes: svn path=/head/; revision=12513
* A batch of Jim Lowe's patches:Jordan K. Hubbard1995-11-291-1/+2
| | | | | | | | | | | | | o Add signed/unsigned functionality to the matrox meteor device driver. o Apply a few fixes to the sound driver. o Add a ``SPIGOT_UNSECURE'' compile time definition so, if one defines SPIGOT_UNSECURE in their conf file, then they can use the spigot w/o root. There is a warning that this allows users access to the IO page which is probably not secure. Submitted by: james Notes: svn path=/head/; revision=12511
* Device driver for Intel Pro/100 PCI Fast Ethernet controller.David Greenman1995-11-282-0/+1313
| | | | Notes: svn path=/head/; revision=12510
* the second set of changes in a move towards getting devices to beJulian Elischer1995-11-2811-11/+385
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 */ Notes: svn path=/head/; revision=12502
* Removed all #includes of the unused file <sys/device.h>.Bruce Evans1995-11-281-2/+1
| | | | Notes: svn path=/head/; revision=12501
* Mainly cosmetic cleanups... It now uses more consistant message reportingPeter Wemm1995-11-283-27/+29
| | | | | | | | on the console, and no longer uses "SLXOS" which I suspect may be a trademark... (I'm not sure, but this is not really a SLXOS driver anyway) Notes: svn path=/head/; revision=12496
* Separate colors & attributes as Terry pointsAndrey A. Chernov1995-11-282-74/+148
| | | | | | | Reviewed by: soren Notes: svn path=/head/; revision=12494
* Fixed setting of speed B0 - don't output a bogus divisor of 0 and aBruce Evans1995-11-262-10/+18
| | | | | | | | random prescaler, just hang up. This may fix hangup problems with mgetty. Notes: svn path=/head/; revision=12490
* Fixed a comment.Bruce Evans1995-11-241-2/+2
| | | | Notes: svn path=/head/; revision=12475