summaryrefslogtreecommitdiff
path: root/sys/dev
Commit message (Collapse)AuthorAgeFilesLines
* Remove the enclose_print() call, it is already called from ata-disk.cSøren Schmidt2003-03-101-1/+0
| | | | Notes: svn path=/head/; revision=112055
* Dont use r_bmio on Cyrix chips if not set from BIOS.Søren Schmidt2003-03-101-2/+5
| | | | Notes: svn path=/head/; revision=112054
* Add a a sysctl, hw.kbd.keymap_restrict_change, which acts a bitDavid Malone2003-03-091-0/+144
| | | | | | | | | | | | | | | | | | | | | | | | like secure level but which restricts changes to the keymap. Its values impose the following restrictions: 0: No restriction - this is the default. 1: Only root can change restricted keys (like boot, panic, ...) 2: Only root can change restricted keys and regular keys. Other users still can change accents and function keys. 3: Only root can change restricted keys, regular keys and accents. 4: Only root can change any of the keymap (restricted keys, regular keys, accents and function keys). Unfortunately, the keyboard's accent map is cleared when a new keymap is loaded, which makes the distinction between level 3 and level 4 less useful. The MAC guys might like to make this a policy? No objections from: -audit about 6 moths ago Notes: svn path=/head/; revision=112050
* Fix device freeze to reduce output packet size.Shunsuke Akiyama2003-03-091-4/+33
| | | | | | | And make this value configurable by kernel config or sysctl. Notes: svn path=/head/; revision=112041
* Fix page fault with FTDI's USB serial device.Shunsuke Akiyama2003-03-091-4/+23
| | | | | | | | Fix lost characters counting. Move setting receiver state to proper place on ucomstopread(). Notes: svn path=/head/; revision=112040
* Fix duplicate sc_dying usage.Shunsuke Akiyama2003-03-092-13/+8
| | | | | | | | All drivers which depend on ucom interfaces should use only one sc_dying. Notes: svn path=/head/; revision=112039
* Add missing module dependency.Shunsuke Akiyama2003-03-092-0/+2
| | | | Notes: svn path=/head/; revision=112038
* Note that MAJOR_AUTO is now the default if d_maj is not initialized. ThisPoul-Henning Kamp2003-03-092-2/+0
| | | | | | | | | | | is more robust and prevents the hijacking of /dev/console for the typical mistake. Remove unneeded MAJOR_AUTO uses, it is only needed explicitly now if the driver source has cross-branch compatibility to old releases. Notes: svn path=/head/; revision=112037
* Update the DRM to latest from DRI CVS. This is approximately the versionEric Anholt2003-03-0951-5821/+6113
| | | | | | | | | | included in XFree86 4.3, but includes some fixes. Notable changes include Radeon 8500-9100 support, PCI Radeon/Rage 128 support, transform & lighting support for Radeons, and vblank syncing support for r128, radeon, and mga. The gamma driver was removed due to lack of any users. Notes: svn path=/head/; revision=112015
* Correct names for fxp devices. Sort data by devid inJohn Polstra2003-03-081-20/+20
| | | | | | | | | | | | fxp_ident_table. PR: kern/48699 Submitted by: Sergey A. Osokin <osa@FreeBSD.org.ru> Obtained from: NetBSD (the device strings, that is) MFC after: 4 weeks Notes: svn path=/head/; revision=112005
* Allocate the devstat structure with devstat_new_entry().Poul-Henning Kamp2003-03-084-18/+13
| | | | Notes: svn path=/head/; revision=112004
* Centralize the devstat handling for all GEOM disk device driversPoul-Henning Kamp2003-03-0842-155/+16
| | | | | | | | | | | in geom_disk.c. As a side effect this makes a lot of #include <sys/devicestat.h> lines not needed and some biofinish() calls can be reduced to biodone() again. Notes: svn path=/head/; revision=111979
* - improve timeout handling in fwmem.cHidetoshi Shimokawa2003-03-072-14/+22
| | | | | | | - stop processing of TX db if we reaches the end of active db. Notes: svn path=/head/; revision=111956
* aic79xx.c:Justin T. Gibbs2003-03-064-38/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Include read streaming in the PPR flags we display in diagnostics. In ahd_reset(), set the known mode after our initial pause prior to setting the mode. We can't just set the mode directly because the current mode, after the pause, is most likely unknown and setting the mode when the saved mode is unknown will trigger an assertion in the mode debug code. Complete an audit for SCB RAM reads. These reads must be performed via the special ahd_in?_scbram() methods so we can perform a Rev A. PCI-X workaround. Remove a superfluous mode save operation that was performed just prior to a call to ahd_clear_critical_section(). The saved mode was never restored and wouldn't have been valid anyway since the mode could change while single stepping out of a critical section. aic79xx.h: Add new BUG definition AHD_PCIX_SCBRAM_RD_BUG. aic79xx_inline.h: Update ahd_inb_scbram routine to check for AHD_PCIX_SCBRAM_RD_BUG and only apply the workaround if this bug is active. The old code applied the workaround in all cases. aic79xx_pci.c: Set AHD_PCIX_SCBRAM_RD_BUG for the A4. Remove an attempted saved_modes call in ahd_pci_test_register_access(). Saving the modes can only occur when we are paused, but the call was happening before the chip was known to be paused. Restoring the modes doesn't make sense either since the code makes no assumptions about the state of the sequencer until the first time the mode is set by the driver. This happens after the registers are successfully mapped. Notes: svn path=/head/; revision=111954
* Add integer value of _CID handling.Takanori Watanabe2003-03-061-3/+33
| | | | | | | | | | If _CID is string, it will need more complicated handling to distinguish bus other than ISA. Submitted by: Paul Wankadia <junyer@gmx.net> Notes: svn path=/head/; revision=111948
* MFp4(simokawa_sbp)Hidetoshi Shimokawa2003-03-067-102/+193
| | | | | | | | | | | | | Improve if_fwe performance. - Simplify mbuf handling by using bulkxfer. Now, it uses mbuf clusters for RX buffer as usual ethernet drivers. - Recycle struct xfer buffer and don't call malloc at runtime. - Count input and output errors. - Handle a mbuf chain longer than 6 correctly. - Increase queue length. Notes: svn path=/head/; revision=111942
* Finish driving a stake through the heart of netns and the associatedPeter Wemm2003-03-052-10/+0
| | | | | | | | | ifdefs scattered around the place - its dead Jim! The SMB stuff had stolen AF_NS, make it official. Notes: svn path=/head/; revision=111926
* Retire some misleading comments and explain why we need to keep a copyDuncan Barclay2003-03-051-10/+8
| | | | | | | of parameters written to the card. Notes: svn path=/head/; revision=111916
* Back out last commit, which is fine in theory, but ignores the factOrion Hodson2003-03-053-7/+7
| | | | | | | that a lock is held whilst the allocations are made (M_WAITOK -> M_NOWAIT). Notes: svn path=/head/; revision=111909
* Used correct aue_flags in ELECOM LD-USB/T and ELECOM LD-USB/TX.Takeshi Shibagaki2003-03-051-2/+2
| | | | | | | | | Submitted by: Yasushi Oshima <oshimaya@sc.starcat.ne.jp> Takeshi Shibagaki <shiba@freebsd.org> (refer to [bsd-usb:685],[bsd-usb:686]) Notes: svn path=/head/; revision=111907
* Fixed an issue which transfer no packets in combination with aue driver.Takeshi Shibagaki2003-03-051-2/+5
| | | | | | | | | | Submitted by Hiroyuki Aizu <eyes@navi.org> (refer to [FreeBSD-users-jp 65061]) Tested by Hiroharu Tamaru <tamaru@myn.rcast.u-tokyo.ac.jp> (refer to [bsd-usb:689]) Notes: svn path=/head/; revision=111906
* Make TTYHOG tunable.David Schultz2003-03-054-0/+6
| | | | | | | Reviewed by: mike (mentor) Notes: svn path=/head/; revision=111899
* Attempt a hard reset if AC97 codec is not ready on attach.Orion Hodson2003-03-052-20/+27
| | | | | | | | | Halt attach if mixer_init fails. Prompted by: points raised by Hugo Valentim <hvalentim@gmx.net>. Notes: svn path=/head/; revision=111898
* Set ldesc after dbch->ndesc has initialized.Hidetoshi Shimokawa2003-03-051-3/+2
| | | | Notes: svn path=/head/; revision=111892
* Update netisr handling; Each SWI now registers its queue, and all queueJonathan Lemon2003-03-047-35/+11
| | | | | | | | | | | | | drain routines are done by swi_net, which allows for better queue control at some future point. Packets may also be directly dispatched to a netisr instead of queued, this may be of interest at some installations, but currently defaults to off. Reviewed by: hsu, silby, jayanth, sam Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=111888
* Initialize the second buffer for mirroring to point to itself and not itsPoul-Henning Kamp2003-03-041-0/+1
| | | | | | | partner. Notes: svn path=/head/; revision=111863
* Fix printf warning on RELENG_4.Hidetoshi Shimokawa2003-03-041-0/+4
| | | | Notes: svn path=/head/; revision=111858
* Make nokqfilter() return the correct return value.Poul-Henning Kamp2003-03-0311-11/+11
| | | | | | | Ditch the D_KQFILTER flag which was used to prevent calling NULL pointers. Notes: svn path=/head/; revision=111821
* Simplify ORB queue management.Hidetoshi Shimokawa2003-03-031-26/+19
| | | | | | | | Don't send doorbell and send ORB pointer only if it's necessary. This reduces bus traffic and interrupts much. Notes: svn path=/head/; revision=111819
* Add a "-S sectorsize" option to enable Kirk to find a bug :-)Poul-Henning Kamp2003-03-031-1/+7
| | | | Notes: svn path=/head/; revision=111818
* Don't initialize d_kqfilter to 0.Poul-Henning Kamp2003-03-031-3/+1
| | | | Notes: svn path=/head/; revision=111817
* Gigacommit to improve device-driver source compatibility betweenPoul-Henning Kamp2003-03-0374-991/+541
| | | | | | | | | | | | | | | | branches: Initialize struct cdevsw using C99 sparse initializtion and remove all initializations to default values. This patch is automatically generated and has been tested by compiling LINT with all the fields in struct cdevsw in reverse order on alpha, sparc64 and i386. Approved by: re(scottl) Notes: svn path=/head/; revision=111815
* Minor cleanup of the Promise code.Søren Schmidt2003-03-032-18/+22
| | | | Notes: svn path=/head/; revision=111812
* Always set the setmode funcptr.Søren Schmidt2003-03-033-1/+21
| | | | Notes: svn path=/head/; revision=111809
* Defer allowing async. requests after self ID's have received.Hidetoshi Shimokawa2003-03-031-7/+6
| | | | | | | | | | | | | This should fix some problem of SBP2 device probing. Prior to rev 1.41, we keep writing the register while bus reset phase. But in rev 1.41, we ignore successive bus reset events and some chips seem to clear the register after we write to it. Tested by: Michael Reifenberger <root@nihil.reifenberger.com> Notes: svn path=/head/; revision=111787
* Spell noread() and nowrite() correctly (ie: not "NULL")Poul-Henning Kamp2003-03-021-2/+2
| | | | Notes: svn path=/head/; revision=111759
* Don't use evil casts in cdevsw initialization.Poul-Henning Kamp2003-03-021-5/+13
| | | | Notes: svn path=/head/; revision=111758
* Use canonical format for cdevsw initialization.Poul-Henning Kamp2003-03-026-50/+79
| | | | Notes: svn path=/head/; revision=111753
* Use canonical format for cdevsw initilization.Poul-Henning Kamp2003-03-021-13/+13
| | | | Notes: svn path=/head/; revision=111752
* Use canonical name for cdevsw initialization.Poul-Henning Kamp2003-03-021-13/+13
| | | | Notes: svn path=/head/; revision=111751
* Use canonical form for cdevsw initialization.Poul-Henning Kamp2003-03-021-13/+13
| | | | Notes: svn path=/head/; revision=111750
* More low-hanging fruit: kill caddr_t in calls to wakeup(9) / [mt]sleep(9).Dag-Erling Smørgrav2003-03-0221-57/+57
| | | | Notes: svn path=/head/; revision=111748
* Put cdevsw initialization on canonical format.Poul-Henning Kamp2003-03-021-3/+14
| | | | Notes: svn path=/head/; revision=111747
* Fix cdevsw initialization commit to follow canonical format.Poul-Henning Kamp2003-03-021-1/+1
| | | | Notes: svn path=/head/; revision=111745
* Format the cdevsw like all other drivers do it for improved grepability.Poul-Henning Kamp2003-03-021-4/+13
| | | | Notes: svn path=/head/; revision=111740
* NO_GEOM cleanup:Poul-Henning Kamp2003-03-022-19/+1
| | | | | | | Remove cdevsw->d_psize() implementation. It is no longer needed. Notes: svn path=/head/; revision=111734
* NO_GEOM cleanup:Poul-Henning Kamp2003-03-021-4/+4
| | | | | | | | mcdsize() is not a cdevsw->d_psize function (any more ?) so rename it, give it a better prototype to avoid misusing d_psize_t. Notes: svn path=/head/; revision=111731
* Fix 'bulk in' and 'bulk out' being reversed in a couple of error messages.Scott Long2003-03-021-2/+2
| | | | Notes: svn path=/head/; revision=111718
* Don't reset agent before processing OCB has done.Hidetoshi Shimokawa2003-03-011-6/+12
| | | | Notes: svn path=/head/; revision=111704
* Fix support for HPT controllers they where always left in PIO mode.Søren Schmidt2003-03-011-1/+1
| | | | | | | Amazing what a ';' can do :/ Notes: svn path=/head/; revision=111696