summaryrefslogtreecommitdiffstats
path: root/sys/dev/sbus (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Change users of IFQ_DEQUEUE(), IFQ_ENQUEUE() and IFQ_LEN() to use thepatrick2020-07-102-4/+4
| | | | | | "new" API. ok dlg@ tobhe@
* change wsdisplay attribute type from long to uint32_tjsg2020-05-253-19/+19
| | | | | | | | miod explained it was initially a long as it was thought drivers may need to allocate storage but in practice they don't need more than 32 bits for an attribute. suggested and reviewed by miod@
* Implement kqfilter matching the corresponding poll routine.mpi2020-05-232-2/+15
| | | | ok kettenis@
* magma(4): timeout_add(9) -> timeout_add_msec(9)cheloha2020-02-182-35/+10
| | | | | | | | Remove the tick conversion stuff and use timeout_add_msec(9) directly. Compile-tested by kn@. ok kn@
* stp(4): tsleep(9) -> tsleep_nsec(9)cheloha2020-02-181-11/+8
| | | | | | | | With input from kn@. Compile-tested by kn@. ok kn@
* Convert infinite sleeps to {m,t}sleep_nsec(9).mpi2019-12-313-9/+12
| | | | ok kn@
* ttysleep(): drop unused timeout parametercheloha2019-07-192-4/+4
| | | | | | | | All callers sleep indefinitely. With help from visa@. ok visa@, ratchov@, kn@
* Convert K&R function definitions to modern C. clang is more picky aboutclaudio2018-12-273-227/+72
| | | | | them. OK otto@ deraadt@
* More "explicitely" -> "explicitly" in various comments.krw2018-10-221-2/+2
| | | | ok guenther@ tb@ deraadt@
* Remove almost unused `flags' argument of suser().mpi2018-02-192-6/+6
| | | | | | | The account flag `ASU' will no longer be set but that makes suser() mpsafe since it no longer mess with a per-process field. No objection from millert@, ok tedu@, bluhm@
* prune files.* entries that refer to files not in treejsg2018-02-141-2/+1
| | | | ok krw@ mpi@
* Don't pull in <sys/file.h> just to get fcntl.hguenther2017-12-302-4/+4
| | | | ok deraadt@ krw@
* If you use sys/param.h, you don't need sys/types.hderaadt2017-09-086-12/+6
|
* move counting if_opackets next to counting if_obytes in if_enqueue.dlg2017-01-222-4/+2
| | | | | | | this means packets are consistently counted in one place, unlike the many and various ways that drivers thought they should do it. ok mpi@ deraadt@
* In the set_params() routine, remove the AUDIO_ENCODING_ULINEAR caseratchov2017-01-041-11/+1
| | | | as upper layers calls it with AUDIO_ENCODING_ULINEAR_{LE,BE} only.
* Remove unused getdev() audio driver functions.ratchov2016-09-191-16/+1
|
* Remove drain(), query_encoding(), mappage() and get_default_params()ratchov2016-09-141-70/+2
| | | | | methods from all audio drivers and from the audio_if structure as they are never called.
* remove some more sparc remnants. ok deraadttedu2016-09-041-7/+1
|
* G/C IFQ_SET_READY().mpi2016-04-132-4/+2
|
* Reduces the noise around the global ``ticks'' variable by renamingmpi2016-03-191-8/+8
| | | | | | all the local ones to ``nticks''. ok stefan@, deraadt@
* Convert sparc drivers bpp and magma to uiomovestefan2016-03-142-10/+10
| | | | Compile test and ok tobiasu@
* No trailers has been the default and only option for 20 years, yet sometedu2015-12-082-4/+4
| | | | | | | drivers still set IFF_NOTRAILERS while others do not. Remove all usage of the flag from the drivers which in ancient times used it (and the modern drivers which blindly copied it from those drivers of yore). suggested by guenther. ok mpi
* Rework gem_start to check that there's enough space in the ring beforejmatthew2015-11-281-3/+3
| | | | | | | | | | | | | | | | | dequeueing a packet, then drop the packet if it can't be sent, rather than using two phase dequeue then commit. Adjust sc_tx_cnt using atomic operations, take the kernel lock before calling gem_start or gem_init from the interrupt handler, and use an interrupt barrier when taking the interface down. With all this done, we can mark the interrupt handler for pci (but not sbus) attached gem(4) as mpsafe. mpi@ wrote this initially, I fixed bugs to keep sparc64 happy and kept it up to date with ifq changes. ok mpi@ dlg@
* Network drivers should not include <net/route.h> or <net/netisr.h>mpi2015-11-252-4/+2
|
* replace IFF_OACTIVE manipulation with mpsafe operations.dlg2015-11-252-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | there are two things shared between the network stack and drivers in the send path: the send queue and the IFF_OACTIVE flag. the send queue is now protected by a mutex. this diff makes the oactive functionality mpsafe too. IFF_OACTIVE is part of if_flags. there are two problems with that. firstly, if_flags is a short and we dont have any MI atomic operations to manipulate a short. secondly, while we could make the IFF_OACTIVE operates mpsafe, all changes to other flags would have to be made safe at the same time, otherwise a read-modify-write cycle on their updates could clobber the oactive change. instead, this moves the oactive mark into struct ifqueue and provides an API for changing it. there's ifq_set_oactive, ifq_clr_oactive, and ifq_is_oactive. these are modelled on ifsq_set_oactive, ifsq_clr_oactive, and ifsq_is_oactive in dragonflybsd. this diff includes changes to all the drivers manipulating IFF_OACTIVE to now use the ifsq_{set,clr_is}_oactive API too. ok kettenis@ mpi@ jmatthew@ deraadt@
* You only need <net/if_dl.h> if you're using LLADDR() or a sockaddr_dl.mpi2015-11-245-10/+5
|
* The only network driver needing <net/if_types.h> is upl(4) for IFT_OTHER.mpi2015-11-242-4/+2
|
* Kill useless IFQ_POLL().mpi2015-11-111-3/+2
| | | | ok dlg@
* arp_ifinit() is no longer needed and almost dead.mpi2015-10-252-22/+4
|
* More ifmedia64 fallout; that should be the last.miod2015-09-121-2/+2
|
* Make room for media types of the future. Extend the ifmedia word to 64 bits.stsp2015-09-115-15/+15
| | | | | | | | | | | | | | | | This changes numbers of the SIOCSIFMEDIA and SIOCGIFMEDIA ioctls and grows struct ifmediareq. Old ifconfig and dhclient binaries can still assign addresses, however the 'media' subcommand stops working. Recompiling ifconfig and dhclient with new headers before a reboot should not be necessary unless in very special circumstances where non-default media settings must be used to get link and console access is not available. There may be some MD fallout but that will be cleared up later. ok deraadt miod with help and suggestions from several sharks attending l2k15
* Fix a zx_putchar() stupid bug I introduced nine years ago by actuallymiod2015-09-101-5/+5
| | | | initializing variables before they get used.
* MFREE(9) is dead, long live m_freem(9)!mpi2015-07-082-6/+6
| | | | ok bluhm@, claudio@, dlg@
* Increment if_ipackets in if_input().mpi2015-06-242-4/+2
| | | | | | | Note that pseudo-drivers not using if_input() are not affected by this conversion. ok mikeb@, kettenis@, claudio@, dlg@
* remove isp(4) now that the ql* family have replaced itjmatthew2015-06-192-728/+1
|
* test mbuf pointers against NULL not 0jsg2015-05-131-2/+2
| | | | ok krw@ miod@
* Remove support for ADPCM encoding which isn't used nowadays andratchov2015-05-111-12/+1
| | | | not available to programs anyway.
* Remove all audio format conversion code from the kernel (btw holdingratchov2015-05-112-30/+7
| | | | | | | | | the kernel_lock), as we already do better conversions in user-mode. Yet, no need for every single driver to fiddle with the conversion code as they are done transparently by common MI code. With help from armani and miod, support from mpi ok armani@
* Keep in sync with the sparc version: convert to if_input().mpi2015-04-072-26/+8
|
* First step towards making uiomove() take a size_t size argument:miod2015-02-102-5/+5
| | | | | | | - rename uiomove() to uiomovei() and update all its users. - introduce uiomove(), which is similar to uiomovei() but with a size_t. - rewrite uiomovei() as an uiomove() wrapper. ok kettenis@
* unifdef INETtedu2014-12-225-15/+5
|
* Fewer <netinet/in_systm.h>mpi2014-08-115-25/+5
|
* add a size argument to free. will be used soon, but for now default to 0.tedu2014-07-124-13/+13
| | | | after discussions with beck deraadt kettenis.
* ISP1000 SBus support for qlw(4).kettenis2014-03-152-1/+151
|
* florian@ noticed that I missed some isp24xx code in the sbus gluejmatthew2014-02-141-4/+1
|
* Build isp2xxx firmware into separate object files so we only includejmatthew2014-02-101-2/+2
| | | | | | | one copy when both isp(4) and qla(4) are enabled. This is a temporary measure until qla(4) takes over completely. looked at by miod@ and kettenis@
* sbus(4) glue for qla(4)kettenis2014-02-022-1/+160
|
* add a missing argument to a debug printfjsg2014-01-221-2/+3
|
* instead of having every bit of glue set up and attach an identicaldlg2014-01-181-9/+2
| | | | | | scsi_adapter struct, just do it once in the chip code. ok krw@
* 1 << 31 cleanup. Eitan Adler pointed out that there has been aderaadt2013-11-261-3/+3
| | | | | resurrection of the bad idiom in the tree. sufficient review by miod, kettenis, tedu