summaryrefslogtreecommitdiffstats
path: root/sys/dev/cy
Commit message (Collapse)AuthorAgeFilesLines
* Cleaned up previous commit, mainly by moving repetitive calculationsbde1998-08-133-234/+127
| | | | | | | | | of invariants to cyattach(). Fixed minor bugs: - cyparam() returned without restoring the ipl in the error cases. This was harmless because cyparam() is always called at spltty(). - one check for "rev. J or higher" actually checked for precisely rev. J.
* Updated for not-so-new version of Cyclom-Y boards (with 60MHz clock andbde1998-08-133-80/+246
| | | | | | | swapped RTS/DTR). Merge the vendor's modification of the 2.2.6-release version into -current for reference. Will be cleaned up in next commit. Obtained from: ftp://ftp.cyclades.com/pub/cyclades/cyclom-y/freebsd/2.2.6/cyy226.tar.gz
* Register tty software interrupt handlers at run time using register_swi()bde1998-08-112-30/+22
| | | | | | | instead of at compile time using ifdefs. Use _swi_null instead of dummycamisr. CAM and dpt should call register_swi() instead of hacking on ihandlers[] directly.
* Fixed sign extension bugs awoken by changing speed_t to an unsignedbde1998-07-292-4/+8
| | | | | | | type. 19200, 1200 and other relatively uninteresting speeds were broken. Submitted by: Rob Mallory <rmallory@qualcomm.com>
* Changed %n to %r in devfs name format strings. %n has almost gone away.bde1998-07-152-14/+14
|
* This commit fixes various 64bit portability problems required fordfr1998-06-072-4/+4
| | | | | | | | | | FreeBSD/alpha. The most significant item is to change the command argument to ioctl functions from int to u_long. This change brings us inline with various other BSD versions. Driver writers may like to use (__FreeBSD_version == 300003) to detect this change. The prototype FreeBSD/alpha machdep will follow in a couple of days time.
* Protect against count of chars received being 0, which causes a panicdg1998-03-182-2/+6
| | | | | | otherwise. Can apparantly happen with some firmware revs. Submitted by: Kouichi Hirabayashi <kh@mogami-wire.co.jp>
* Implement the spirit but not the letter of Terrys hot-char patch.phk1998-02-132-22/+4
| | | | | | | The differences Terrys patch and this patch are: * Remove a lot of un-needed comments. * Don't put l_hotchar at the front of stuct linesw, there is no need to. * Use the #defines for the hotchar in the SLIP and PPP line disciplines
* Make all file-system (MFS, FFS, NFS, LFS, DEVFS) related option new-style.eivind1998-01-242-2/+4
| | | | | | | | This introduce an xxxFS_BOOT for each of the rootable filesystems. (Presently not required, but encouraged to allow a smooth move of option *FS to opt_dontuse.h later.) LFS is temporarily disabled, and will be re-enabled tomorrow.
* YAMFsio.c (always call ttwwakeup() before returning from comstart()).bde1997-12-282-2/+4
|
* Make COMPAT_43 and COMPAT_SUNOS new-style options.eivind1997-12-162-2/+6
|
* Use ENOIOCTL instead of -1 (= ERESTART) for tty ioctls that arebde1997-12-062-6/+6
| | | | | not handled at a particular level. This fixes mainly restarting of interrupted TIOCDRAINs and TIOCSETA{W,F}s.
* Fixed chip_offsets[] which I broke in rev.1.53. The offsets aren'tbde1997-11-102-4/+4
| | | | | | | | | actually offsets, they are offsets scaled by dividing by 2^cy_align. I use different values for cy_align since the -current values are unnaturally scaled, so I need different offsets, and the wrong offsets got committed. Reported by: nnd@itfs.nsk.su (N.Dudorov)
* aha1542.c aic6360.c cy.c fd.c ft.cgibbs1997-09-212-10/+18
| | | | | | | | | | | | if_ie.c if_wl.c if_zp.c isa.c isa_device.h labpc.c mcd.c ncr5380.c scd.c seagate.c si.c sio.c tw.c ultra14f.c wcd.c wd.c: Update for changes in the callout interface. apic_vector.s icu_vector.s ipl.s ipl_funcs.c: Add CAM software/hardware interrupt support.
* Update select -> poll in drivers.peter1997-09-142-4/+4
|
* Cleaned up revs 1.36-1.40 (mainly disordered declarations, non-bogusbde1997-09-032-242/+294
| | | | indentation (it is supposed to be bogus to match sio.c), and long lines).
* Removed unused #includes.bde1997-09-021-2/+1
|
* General cleanup of the sub-system locking macros.fsmp1997-09-012-6/+16
| | | | | | | | Eliminated the RECURSIVE_MPINTRLOCK. clock.c and microtime use clock_lock. sio.c and cy.c use com_lock. Suggestions by: Bruce Evans <bde@zeta.org.au>
* Another round of lock pushdown.fsmp1997-08-302-66/+10
| | | | | | | | | Add a simplelock to deal with disable_intr()/enable_intr() as used in UP kernel. UP kernel expects that this is enough to guarantee exclusive access to regions of code bracketed by these 2 functions. Add a simplelock to bracket clock accesses in clock.c: clock_lock. Help from: Bruce Evans <bde@zeta.org.au>
* Moved the COM_LOCK and COM_UNLOCK macros to machine/param.h.fsmp1997-08-212-20/+2
|
* Attempt to make cy.c MP-safe.fsmp1997-08-202-2/+84
| | | | | | I have no way of testing this one, first SMP/cy user please let me know... It is my belief that sio and cy are the only FAST_INTR() ISRs. If this is a bad assumption please educate me.
* Removed unused #includes.bde1997-07-202-6/+2
|
* Don't include <sys/ioctl.h> in the kernel. Stage 1: don't includebde1997-03-242-4/+2
| | | | | it when it is not used. In most cases, the reasons for including it went away when the special ioctl headers became self-sufficient.
* Don't #include <sys/fcntl.h> in <sys/file.h> if KERNEL is defined.bde1997-03-232-4/+4
| | | | | Fixed everything that depended on getting fcntl.h stuff from the wrong place. Most things don't depend on file.h stuff at all.
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notpeter1997-02-224-4/+4
| | | | ready for it yet.
* Fixed missing ioport offset from the reading/updating of the PLXdg1997-02-051-1/+1
| | | | | | interrupt control/status register. Submitted by: Brian McGovern <bmcgover@cisco.com>
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-144-4/+4
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Fixed handling of modem status changes. Only the most common case ofbde1996-12-052-16/+46
| | | | | connect/hangup in !CLOCAL mode was handled correctly. mgetty and ppp didn't work because they turn on CLOCAL and poll for carrier (or RI?).
* Don't fiddle with RTS if RTS flow control is off. This gives applicationsbde1996-11-132-34/+56
| | | | | | | | | | almost complete control over RTS (control of its initial value is still missing). This fixes PR 1644 for sio. The author of PR 1644 wants it in 2.1.6 and 2.2. This may be safe since the complications are only in rarely used cases that I hope I've covered.
* Updated #includes to 4.4lite style.bde1996-10-151-2/+3
|
* Fixed a bug that got introduced when I changed the CY16_RESET anddg1996-10-142-6/+6
| | | | | CY_CLEAR_INTR definitions. This might have affected probing of ISA versions of the Cyclom 16/32-Y.
* Make this compile again for the CyDebug case.dg1996-10-142-12/+14
|
* Change DEVFS device naming convention for cuac*, ttyc*.dg1996-10-132-14/+26
|
* Changes to add support for the PCI version of the Cyclades Cyclom-Ydg1996-10-134-270/+467
| | | | serial adapter, and support for multiple Cyclom controllers.
* Oops, missed a chunk in that last commit.dg1996-10-042-6/+6
|
* Implemented a more sophisticated mechanism for finding the chip iobasedg1996-10-043-124/+144
| | | | | so that 32Y boards will work. Fixed bogus indenting and added a pair of parens.
* Remove devconf, it never grew up to be of any use.phk1996-09-062-104/+2
|
* Synced with sio.c: added support for TIOCDCDTIMESTAMP and simplifiedbde1996-07-302-80/+64
| | | | timestamp code.
* Clean up -Wunused warnings.gpalmer1996-06-122-2/+10
| | | | Reviewed by: bde
* KGDB is dead. It may come back one day if somebody does it.phk1996-05-022-26/+2
|
* Fixed ownerships of callout devices.bde1996-03-272-28/+26
|
* Avoid local sprintfs and other printf'isms.phk1996-01-252-40/+36
|
* Synced with sio.c. This fixed the DEVFS initialization. cy.c isbde1995-12-222-184/+154
| | | | supposed to be identical with sio.c for hardware-independent details.
* Replaced nxreset by noreset (if the reset function gets called, then thebde1995-12-102-4/+4
| | | | | | | 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).
* Replaced nxmmap by nommap (if the mmap function gets called, then thebde1995-12-102-4/+4
| | | | device must be configured).
* Removed new alias d_size_t for d_psize_t.bde1995-12-102-4/+4
| | | | | | | | | | 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.
* Julian forgot to make the *devsw structures static.phk1995-12-082-4/+4
|
* Pass 3 of the great devsw changesjulian1995-12-082-60/+76
| | | | | | | | | | | | | | | | | | | | | | | 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.. :)
* Removed unnecessary #includes of <sys/user.h>. Some of these were justbde1995-12-062-4/+2
| | | | | | | 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.
* If you're going to mechanically replicate something in 50 filesjulian1995-11-292-4/+4
| | | | it's best to not have a (compiles cleanly) typo in it! (sigh)
OpenPOWER on IntegriCloud