aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/cx
Commit message (Collapse)AuthorAgeFilesLines
* Make code ready to switch debug.mpsafenet to 1 since I've not able toRoman Kurakin2004-08-271-1/+2
| | | | | | | commit MPSAFE code for now it is just IFF_NEEDSGIANT. Notes: svn path=/head/; revision=134412
* Fix resource check while autodetection.Roman Kurakin2004-08-131-6/+6
| | | | Notes: svn path=/head/; revision=133647
* White space cleanup.Roman Kurakin2004-08-131-219/+219
| | | | Notes: svn path=/head/; revision=133644
* Slight cosmetic changes.Julian Elischer2004-07-201-2/+2
| | | | | | | | | | | | Also introduce a macro to be called by persistent nodes to signal their persistence during shutdown to hide this mechanism from the node author. Make node flags have a consistent style in naming. Document the change. Notes: svn path=/head/; revision=132464
* Preparation commit for the tty cleanups that will follow in the nearPoul-Henning Kamp2004-07-151-1/+1
| | | | | | | | | | | | future: rename ttyopen() -> tty_open() and ttyclose() -> tty_close(). We need the ttyopen() and ttyclose() for the new generic cdevsw functions for tty devices in order to have consistent naming. Notes: svn path=/head/; revision=132226
* Introduce ttygone() which indicates that the hardware is detached.Poul-Henning Kamp2004-07-111-60/+5
| | | | | | | Move dtrwait logic to the generic TTY level. Notes: svn path=/head/; revision=131981
* - Shorten the names for the TTY related swi interrupt handlers as theJohn Baldwin2004-06-281-1/+1
| | | | | | | | | | | 'tty:' prefix is largely redundant. - Fix the priority of the low-priority TTY SWIs that are hung off of the softclock thread. Submitted by: bde (2) Notes: svn path=/head/; revision=131242
* Convert Netgraph to use mbuf tags to pass its meta information around.Julian Elischer2004-06-251-5/+9
| | | | | | | | | | | Thanks to Sam for importing tags in a way that allowed this to be done. Submitted by: Gleb Smirnoff <glebius@cell.sick.ru> Also allow the sr and ar drivers to create netgraph versions of their modules. Document the change to the ksocket node. Notes: svn path=/head/; revision=131108
* Use bus_dma* instead of contigmalloc()+vtophys() for RELENG_5.Roman Kurakin2004-06-231-31/+123
| | | | Notes: svn path=/head/; revision=130985
* Make code more clean: backout support for 3.x branch.Roman Kurakin2004-06-231-502/+30
| | | | Notes: svn path=/head/; revision=130971
* Second half of the dev_t cleanup.Poul-Henning Kamp2004-06-171-2/+2
| | | | | | | | | | | | | | The big lines are: NODEV -> NULL NOUDEV -> NODEV udev_t -> dev_t udev2dev() -> findcdev() Various minor adjustments including handling of userland access to kernel space struct cdev etc. Notes: svn path=/head/; revision=130640
* Do the dreaded s/dev_t/struct cdev */Poul-Henning Kamp2004-06-161-7/+7
| | | | | | | Bump __FreeBSD_version accordingly. Notes: svn path=/head/; revision=130585
* Free tty at detach().Roman Kurakin2004-06-101-1/+15
| | | | | | | | Tested by: `pstat -t` Requested by: phk Notes: svn path=/head/; revision=130301
* Check if we control device. Else we will go to panic cause we don't haveRoman Kurakin2004-06-091-1/+1
| | | | | | | properly initialized dev_t structure at open. Notes: svn path=/head/; revision=130277
* 1. struct tty => struct tty *tty.Roman Kurakin2004-06-081-95/+110
| | | | | | | Requested by: phk Notes: svn path=/head/; revision=130240
* Make linesw[] an array of pointers to linedesc instead of an array ofPoul-Henning Kamp2004-06-071-1/+1
| | | | | | | linedisc. Notes: svn path=/head/; revision=130203
* Centralize the line discipline optimization determination in a functionPoul-Henning Kamp2004-06-041-9/+15
| | | | | | | | | | | | called ttyldoptim(). Use this function from all the relevant drivers. I belive no drivers finger linesw[] directly anymore, paving the way for locking and refcounting. Notes: svn path=/head/; revision=130096
* Manual edits to change linesw[]-frobbing to ttyld_*() calls.Poul-Henning Kamp2004-06-041-10/+19
| | | | Notes: svn path=/head/; revision=130095
* Make the remaining serial drivers call ttyioctl() rather than callingPoul-Henning Kamp2004-06-041-0/+10
| | | | | | | the linedisc directly. Notes: svn path=/head/; revision=130057
* Add missing <sys/module.h> includesPoul-Henning Kamp2004-05-301-0/+1
| | | | Notes: svn path=/head/; revision=129879
* Switch to using C99 sparse initialisers for the type methods array.Roman Kurakin2004-05-291-22/+9
| | | | | | | | | Requested by: harti MFC after: 1 week Notes: svn path=/head/; revision=129837
* Use better way of closing fr support before current sppp doesn't have it.Roman Kurakin2004-05-071-8/+13
| | | | Notes: svn path=/head/; revision=129029
* Sync with RELENG_4.Roman Kurakin2004-05-071-3/+3
| | | | Notes: svn path=/head/; revision=129027
* Delete unused cx_slow_ih.Roman Kurakin2004-05-071-4/+0
| | | | | | | Pointed by: jhb Notes: svn path=/head/; revision=129026
* These are changes to allow to use the Intel C/C++ compiler (lang/icc)Tom Rhodes2004-03-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to build the kernel. It doesn't affect the operation if gcc. Most of the changes are just adding __INTEL_COMPILER to #ifdef's, as icc v8 may define __GNUC__ some parts may look strange but are necessary. Additional changes: - in_cksum.[ch]: * use a generic C version instead of the assembly version in the !gcc case (ASM code breaks with the optimizations icc does) -> no bad checksums with an icc compiled kernel Help from: andre, grehan, das Stolen from: alpha version via ppc version The entire checksum code should IMHO be replaced with the DragonFly version (because it isn't guaranteed future revisions of gcc will include similar optimizations) as in: ---snip--- Revision Changes Path 1.12 +1 -0 src/sys/conf/files.i386 1.4 +142 -558 src/sys/i386/i386/in_cksum.c 1.5 +33 -69 src/sys/i386/include/in_cksum.h 1.5 +2 -0 src/sys/netinet/igmp.c 1.6 +0 -1 src/sys/netinet/in.h 1.6 +2 -0 src/sys/netinet/ip_icmp.c 1.4 +3 -4 src/contrib/ipfilter/ip_compat.h 1.3 +1 -2 src/sbin/natd/icmp.c 1.4 +0 -1 src/sbin/natd/natd.c 1.48 +1 -0 src/sys/conf/files 1.2 +0 -1 src/sys/conf/files.amd64 1.13 +0 -1 src/sys/conf/files.i386 1.5 +0 -1 src/sys/conf/files.pc98 1.7 +1 -1 src/sys/contrib/ipfilter/netinet/fil.c 1.10 +2 -3 src/sys/contrib/ipfilter/netinet/ip_compat.h 1.10 +1 -1 src/sys/contrib/ipfilter/netinet/ip_fil.c 1.7 +1 -1 src/sys/dev/netif/txp/if_txp.c 1.7 +1 -1 src/sys/net/ip_mroute/ip_mroute.c 1.7 +1 -2 src/sys/net/ipfw/ip_fw2.c 1.6 +1 -2 src/sys/netinet/igmp.c 1.4 +158 -116 src/sys/netinet/in_cksum.c 1.6 +1 -1 src/sys/netinet/ip_gre.c 1.7 +1 -2 src/sys/netinet/ip_icmp.c 1.10 +1 -1 src/sys/netinet/ip_input.c 1.10 +1 -2 src/sys/netinet/ip_output.c 1.13 +1 -2 src/sys/netinet/tcp_input.c 1.9 +1 -2 src/sys/netinet/tcp_output.c 1.10 +1 -1 src/sys/netinet/tcp_subr.c 1.10 +1 -1 src/sys/netinet/tcp_syncache.c 1.9 +1 -2 src/sys/netinet/udp_usrreq.c 1.5 +1 -2 src/sys/netinet6/ipsec.c 1.5 +1 -2 src/sys/netproto/ipsec/ipsec.c 1.5 +1 -1 src/sys/netproto/ipsec/ipsec_input.c 1.4 +1 -2 src/sys/netproto/ipsec/ipsec_output.c and finally remove sys/i386/i386 in_cksum.c sys/i386/include in_cksum.h ---snip--- - endian.h: * DTRT in C++ mode - quad.h: * we don't use gcc v1 anymore, remove support for it Suggested by: bde (long ago) - assym.h: * avoid zero-length arrays (remove dependency on a gcc specific feature) This change changes the contents of the object file, but as it's only used to generate some values for a header, and the generator knows how to handle this, there's no impact in the gcc case. Explained by: bde Submitted by: Marius Strobl <marius@alchemy.franken.de> - aicasm.c: * minor change to teach it about the way icc spells "-nostdinc" Not approved by: gibbs (no reply to my mail) - bump __FreeBSD_version (lang/icc needs to know about the changes) Incarnations of this patch survive gcc compiles since a loooong time, I use it on my desktop. An icc compiled kernel works since Nov. 2003 (exceptions: snd_* if used as modules), it survives a build of the entire ports collection with icc. Parts of this commit contains suggestions or submissions from Marius Strobl <marius@alchemy.franken.de>. Reviewed by: -arch Submitted by: netchild Notes: svn path=/head/; revision=126891
* 1. Fix compilation and panic while system boot problem after makedev wasRoman Kurakin2004-03-021-4/+22
| | | | | | | | | changed to unde2dev. Approved by: imp (mentor) Notes: svn path=/head/; revision=126492
* Device megapatch 5/6:Poul-Henning Kamp2004-02-211-1/+1
| | | | | | | | | | | | | | | Remove the unused second argument from udev2dev(). Convert all remaining users of makedev() to use udev2dev(). The semantic difference is that udev2dev() will only locate a pre-existing dev_t, it will not line makedev() create a new one. Apart from the tiny well controlled windown in D_PSEUDO drivers, there should no longer be any "anonymous" dev_t's in the system now, only dev_t's created with make_dev() and make_dev_alias() Notes: svn path=/head/; revision=126081
* Device megapatch 4/6:Poul-Henning Kamp2004-02-211-1/+2
| | | | | | | | | | | Introduce d_version field in struct cdevsw, this must always be initialized to D_VERSION. Flip sense of D_NOGIANT flag to D_NEEDGIANT, this involves removing four D_NOGIANT flags and adding 145 D_NEEDGIANT flags. Notes: svn path=/head/; revision=126080
* Device megapatch 3/6:Poul-Henning Kamp2004-02-211-1/+0
| | | | | | | | | | | | | | | Add missing D_TTY flags to various drivers. Complete asserts that dev_t's passed to ttyread(), ttywrite(), ttypoll() and ttykqwrite() have (d_flags & D_TTY) and a struct tty pointer. Make ttyread(), ttywrite(), ttypoll() and ttykqwrite() the default cdevsw methods for D_TTY drivers and remove the explicit initializations in various drivers cdevsw structures. Notes: svn path=/head/; revision=126078
* Fixing copyright and adding vendor cvs id.Roman Kurakin2004-02-141-1/+2
| | | | | | | Approved by: imp (mentor) Notes: svn path=/head/; revision=125816
* Fixing memory deallocationRoman Kurakin2004-02-141-13/+25
| | | | Notes: svn path=/head/; revision=125813
* Updated cx driver commit part 1: bring in the new kernel driver.Warner Losh2003-12-039-0/+7566
This is the vastly updated cx drvier from Roman Kurakin <rik@cronyx.ru> who has been patiently waiting for this update for sometime. The driver is mostly a rewrite from the version we have in the tree. While some similarities remain, losing the little history that the old driver has is not a big loss, and the re@ felt it was easier this way (less error prone). The userland parts of this update will be committed shortly. The driver is not connected to the build yet. I want to make sure I don't break any platform at any time, so I want to test that with these files in the tree before I continue (on the off chance I'm forgetting a file). I changed the DEBUG macro to CX_DEBUG from the code that was submitted (to not break when we go to building with opt_global.h after the release), as well adding $FreeBSD$. Submitted by: Roman Kurakin Approved by: re@ <scottl> Notes: svn path=/head/; revision=123120