summaryrefslogtreecommitdiffstats
path: root/sys/i4b
Commit message (Collapse)AuthorAgeFilesLines
* - Remove the inthand2_t type and use the equivalent driver_intr_t type fromjhb2000-09-131-1/+4
| | | | | | | | | | | | | newbus for referencing device interrupt handlers. - Move the 'struct intrec' type which describes interrupt sources into sys/interrupt.h instead of making it just be a x86 structure. - Don't create 'ithd' and 'intrec' typedefs, instead, just use 'struct ithd' and 'struct intrec' - Move the code to translate new-bus interrupt flags into an interrupt thread priority out of the x86 nexus code and into a MI ithread_priority() function in sys/kern/kern_intr.c. - Remove now-uneeded x86-specific headers from sys/dev/ata/ata-all.c and sys/pci/pci_compat.c.
* Avoid the modules madness I inadvertently introduced by making thephk2000-09-024-36/+0
| | | | | | | | | | | | | | | | | | cloning infrastructure standard in kern_conf. Modules are now the same with or without devfs support. If you need to detect if devfs is present, in modules or elsewhere, check the integer variable "devfs_present". This happily removes an ugly hack from kern/vfs_conf.c. This forces a rename of the eventhandler and the standard clone helper function. Include <sys/eventhandler.h> in <sys/conf.h>: it's a helper #include like <sys/queue.h> Remove all #includes of opt_devfs.h they no longer matter.
* Remove all traces of Julians DEVFS (incl from kern/subr_diskslice.c)phk2000-08-205-59/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | Remove old DEVFS support fields from dev_t. Make uid, gid & mode members of dev_t and set them in make_dev(). Use correct uid, gid & mode in make_dev in disk minilayer. Add support for registering alias names for a dev_t using the new function make_dev_alias(). These will show up as symlinks in DEVFS. Use makedev() rather than make_dev() for MFSs magic devices to prevent DEVFS from noticing this abuse. Add a field for DEVFS inode number in dev_t. Add new DEVFS in fs/devfs. Add devfs cloning to: disk minilayer (ie: ad(4), sd(4), cd(4) etc etc) md(4), tun(4), bpf(4), fd(4) If DEVFS add -d flag to /sbin/inits args to make it mount devfs. Add commented out DEVFS to GENERIC
* Borrow phk's axe and apply the next stage of config(8)'s evolution.peter2000-06-132-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use Warner Losh's "hint" driver to decode ascii strings to fill the resource table at boot time. config(8) no longer generates an ioconf.c table - ie: the configuration no longer has to be compiled into the kernel. You can reconfigure your isa devices with the likes of this at loader(8) time: set hint.ed.0.port=0x320 userconfig will be rewritten to use this style interface one day and will move to /boot/userconfig.4th or something like that. It is still possible to statically compile in a set of hints into a kernel if you do not wish to use loader(8). See the "hints" directive in GENERIC as an example. All device wiring has been moved out of config(8). There is a set of helper scripts (see i386/conf/gethints.pl, and the same for alpha and pc98) that extract the 'at isa? port foo irq bar' from the old files and produces a hints file. If you install this file as /boot/device.hints (and update /boot/defaults/loader.conf - You can do a build/install in sys/boot) then loader will load it automatically for you. You can also compile in the hints directly with: hints "device.hints" as well. There are a few things that I'm not too happy with yet. Under this scheme, things like LINT would no longer be useful as "documentation" of settings. I have renamed this file to 'NOTES' and stored the example hints strings in it. However... this is not something that config(8) understands, so there is a script that extracts the build-specific data from the documentation file (NOTES) to produce a LINT that can be config'ed and built. A stack of man4 pages will need updating. :-/ Also, since there is no longer a difference between 'device' and 'pseudo-device' I collapsed the two together, and the resulting 'device' takes a 'number of units' for devices that still have it statically allocated. eg: 'device fe 4' will compile the fe driver with NFE set to 4. You can then set hints for 4 units (0 - 3). Also note that 'device fe0' will be interpreted as "zero units of 'fe'" which would be bad, so there is a config warning for this. This is only needed for old drivers that still have static limits on numbers of units. All the statically limited drivers that I could find were marked. Please exercise EXTREME CAUTION when transitioning! Moral support by: phk, msmith, dfr, asmodai, imp, and others
* Make this compile without the old 2.2 compatability defines.peter2000-05-282-5/+5
|
* Mass update of isa drivers using compatability shims to usepeter2000-05-281-0/+7
| | | | COMPAT_ISA_DRIVER() so that we can get rid of the evil isa_compat.h table.
* Remove 42 unneeded #include <sys/ioccom.h>.phk2000-05-0338-38/+0
| | | | | | ioccom.h defines only implementation detail, and should therefore only be included from the #include which defines the ioctl tags, in other words: never include it from *.c
* Remove unneeded #include <sys/kernel.h>phk2000-04-2929-29/+0
|
* * Use sys/sys/random.h rather than a i386 specific one.obrien2000-04-242-8/+2
| | | | | * There was nothing that should be machine dependant about i386/isa/random_machdep.c, so it is now sys/kern/kern_random.c.
* Fix a problem which caused i/o resource allocation conflict of thishm2000-03-091-10/+26
| | | | | | | | | | | particular ISDN card with the 2nd IDE controller and/or other cards depending on configuration. The amount of i/o ports allocated are reduced from 0x40 per range to 0x20 per range. Submitted by: Andrew Gordon <arg@arg1.demon.co.uk> Approved by: jkh
* Newbus-ify the USR Sportster TA Intern driver.gj2000-02-211-55/+299
| | | | | | | | | | | | | | | | | | Enable the driver in sys/conf/files.i386. In isa/isavar.h increase ISA_NPORT from 32 to 50. This is required because this brain-damaged card maps 49 (!) port ranges. This does not have a negative impact because this value only specifies the maximum number of entries in a linked list and not the size of an array which is allocated in all drivers. The register/fifo access routines were not newbus-ified because 1) I knew that the old code worked and is simpler and more efficient 2) the if_ed driver does something similar and 3) the newbus macros collapse to inb/outb anyway. Reviewed and tested by: hm Approved by: jkh
* update to isdn4bsd beta release 0.90hm1999-12-146-14/+60
|
* update to isdn4bsd beta release 0.90hm1999-12-1467-6266/+3516
|
* Temporary adjustment to build after pnp changes. There is a new versionpeter1999-12-076-11/+10
| | | | | | in the pipeline apparently. OK'ed by: hm
* Call i4b_l4_drvrdisc, not i4b_l4_disconnect_ind to bring the linkbrian1999-11-281-2/+2
| | | | | | | | down when the device is closed or carrier is removed. This solves the disconnect problems when using user-ppp over isdn. Suggested by: hm
* Disable old PCCARD_MODULE code.imp1999-10-291-0/+2
| | | | | | This should fix LINT. Prompted by: phk's explicit message about LINT breakage
* Remove five now unused fields from struct cdevsw. They should neverphk1999-09-256-30/+0
| | | | | | | | have been there in the first place. A GENERIC kernel shrinks almost 1k. Add a slightly different safetybelt under nostop for tty drivers. Add some missing FreeBSD tags
* Finish making LINT compile. Disable references to pnp in files thatpeter1999-09-034-4/+9
| | | | | don't appear to use it, and disable i4b_isic_pnp.c (with a #warning) until it's converted.
* make correct minor numvers for some of the devices.julian1999-08-311-5/+18
| | | | Submitted by: Hellmuth Michaelis <hm@hcs.de>
* add MAINTAINER for the kernel part of i4bhm1999-08-281-0/+1
|
* $Id$ -> $FreeBSD$peter1999-08-2889-89/+89
|
* Add PHK's make_dev() into more places where DEVFS used to bejulian1999-08-275-92/+13
| | | | | | | | | hooked in directly. Alpha change checked by: Matthew Jacob <mjacob@feral.com> i4b ISDN changes checked by: Udo Schweigert <ust@cert.siemens.de> and Hellmuth Michaelis <hm@hcs.de> PC98 changes checked by: Takahashi Yoshihiro <nyan@FreeBSD.org>
* Avoid symbol clash in LINT.phk1999-08-082-4/+4
|
* updating isdn4bsd to beta version 0.83hm1999-08-0631-287/+2992
|
* Rename bpfilter to bpf.des1999-07-062-16/+16
|
* devsw and cdevsw_add() changes for i4b.phk1999-06-016-77/+147
| | | | Reviewed by: hm
* upgrade isdn4bsd from version 0.71 to the just released version 0.81hm1999-05-2044-706/+2602
|
* Simplify the COMPAT_PCI_DRIVER/DATA_SET hack. We can add:peter1999-05-091-5/+1
| | | | | | | | #define COMPAT_PCI_DRIVER(name,data) DATA_SET(pcidevice_set,data) .. to 2.2.x and 3.x if people think it's worth it. Driver writers can do this if it's not defined. (The reason for this is that I'm trying to progressively eliminate use of linker_sets where it hurts modularity and runtime load capability, and these DATA_SET's keep getting in the way.)
* Missing 'int' declaration in devsw_installed variable.peter1999-05-061-2/+2
|
* Suser() simplification:phk1999-04-271-2/+2
| | | | | | | | | | | | | | | | | | | 1: s/suser/suser_xxx/ 2: Add new function: suser(struct proc *), prototyped in <sys/proc.h>. 3: s/suser_xxx(\([a-zA-Z0-9_]*\)->p_ucred, \&\1->p_acflag)/suser(\1)/ The remaining suser_xxx() calls will be scrutinized and dealt with later. There may be some unneeded #include <sys/cred.h>, but they are left as an exercise for Bruce. More changes to the suser() API will come along with the "jail" code.
* Use PCCARD_MODULE() instead of DATA_SET(), the pccard linker set went apeter1999-04-251-1/+6
| | | | while ago.
* Use COMPAT_PCI_DRIVER() for registration if it exists. This shouldn'tpeter1999-04-241-1/+5
| | | | hurt the driver portability to 3.x too much for where drivers are shared.
* I missed this PnP change for new-bus..peter1999-04-181-8/+2
| | | | Submitted by: Blaz Zupan <blaz@gold.amis.net>
* Minor adjustments to make LINT compile again (thanks to phk for reminding me).hm1999-03-165-34/+37
| | | | | | Because the Fritz!Card PCMCIA stuff is also affected, this includes the fix from PR kern/10278 submitted by Udo Schweigert (udo.schweigert@mchp.siemens.de). PR: kern/10278
* update the i4b include files to i4b release 0.71.00hm1999-03-075-25/+41
|
* update the i4b kernel part to i4b release 0.71.00hm1999-03-0776-501/+2689
|
* Update the pccard hooks to use a module style declaration instead.peter1999-01-191-11/+3
|
* Silence warnings.eivind1999-01-127-17/+19
| | | | Approved by: hm
* Initial entry of ISDN4BSD into the FreeBSD tree.phk1998-12-2783-0/+32435
ISDN4BSD is the work of our brand-new comitter: Hellmuth Michaelis, who has done a tremendous amount of work to bring us this far. There are still some outstanding issues and files to bring into the tree, and for now it will be needed to pick up all the extra docs from the isdn4bsd release. It is probably also a very good idea to subscribe to the isdn@freebsd.org mailing list before you try this out. These files correspond to release "beta Version 0.70.00 / December 1998" from Hellmuth.
OpenPOWER on IntegriCloud