aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix a botched rev. 1.221 commit. Also, a number of people haveRuslan Ermilov2004-10-131-2/+1
| | | | | | | | | pointed out that /usr/local/etc/rc.d/000.pkgtools.sh installed with the portupgrade does an equivalent thing, so I personally would like to see the change reverted, but let David handle it. Notes: svn path=/head/; revision=136471
* Limit DMA address space to 1GB since the trident audio cards can'tPyun YongHyeon2004-10-131-1/+11
| | | | | | | | | | | | | handle DMA addresses located above 1GB. The LBA(loop begin address) register which holds DMA base address is 32bits register. But the MSB 2bits are used for other purposes. This effectivly limits the DMA address space up to 1GB. Approved by: jake (mentor) Reviewed by: truckman, matk Notes: svn path=/head/; revision=136470
* Audio drivers failed to detect failure condition and attempted toPyun YongHyeon2004-10-1318-23/+29
| | | | | | | | | | | | | assign DMA address to the wrong address. It can cause system lockup or other mysterious errors. Since most sound cards requires low DMA address(BUS_SPACE_MAXADDR_24BIT) sndbuf_alloc() would fail when the audio driver is loaded after long running of operations. Approved by: jake (mentor) Reviewed by: truckman, matk Notes: svn path=/head/; revision=136469
* Add dcons_os.{c,h}.Hidetoshi Shimokawa2004-10-133-2/+3
| | | | Notes: svn path=/head/; revision=136468
* - Split dcons core code and OS dependent code.Hidetoshi Shimokawa2004-10-135-650/+883
| | | | | | | | | - Implement dcons_ischar() and dcons_load_buffer(). - If loader passed a dcons buffer address, keep using it. (We still need a patch to cheat memory management system.) Notes: svn path=/head/; revision=136467
* mdoc(7) police:Pyun YongHyeon2004-10-131-14/+16
| | | | | | | | | | | | | .Dt should have a third argument. new sentence should start on its own line. use precise width specifier. Add AUTHORS section and correct device name to /dev/led/auxioled. Approved by: jake (mentor) Pointed by: ru Notes: svn path=/head/; revision=136466
* Permit fcntl(F_SETFL) to work on a ugen(4) device by not returning failureBrian Feldman2004-10-131-0/+1
| | | | | | | for FIOASYNC. Notes: svn path=/head/; revision=136465
* Back out rev.1.91 which implemented bulk read transfers in ugen(4) asBrian Feldman2004-10-131-151/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | asynchronous. I realize that this means the custom application will not work as written, but it is not okay to break most users of ugen(4). The major problem is that a bulk read transfer is not an interrupt saying that X bytes are available -- it is a request to be able to receive up to X bytes, with T timeout, and S short-transfer-okayness. The timeout is a software mechanism that ugen(4) provides and cannot be implemented using asynchronous reads -- the timeout must start at the time a read is done. The status of up to how many bytes can be received in this transfer and whether a short transfer returns data or error is also encoded at least in ohci(4)'s requests to the controller. Trying to detect the "maximum width" results in using a single buffer of far too small when an application requests a large read. Even if you combat this by replacing all buffers again with the maximal sized read buffer (1kb) that ugen(4) would allow you to use before, you don't get the right semantics -- you have to throw data away or make all the timeouts invalid or make the short-transfer settings invalid. There is no way to do this right without extending the ugen(4) API much further -- it breaks the USB camera interfaces used because they need a chain of many maximal-width transfers, for example, and it makes cross-platform support for all the BSDs gratuitously hard. Instead of trying to do select(2) on a bulk read pipe -- which has neither the information on desired transfer length nor ability to implement timeout -- an application can simply use a kernel thread and pipe to turn that endpoint into something poll-able. It is unfortunate that bulk endpoints cannot provide the same semantics that interrupt and isochronous endpoints can, but it is possible to just use ioctl(USB_GET_ENDPOINT_DESC) to find out when different semantics must be used without preventing the normal users of the ugen(4) device from working. Notes: svn path=/head/; revision=136464
* ooops.. vkbd(4) should not have been committedMaksim Yevmenkin2004-10-122-155/+0
| | | | Notes: svn path=/head/; revision=136462
* ng_ubt(4) no longer provides device nodes interface. Update theMaksim Yevmenkin2004-10-123-88/+155
| | | | | | | | | man page to document this. MFC after: 3 days Notes: svn path=/head/; revision=136461
* Get rid of device nodes interface. It is useless and confusing.Maksim Yevmenkin2004-10-122-532/+1
| | | | | | | | | | | | | The original idea was to use it for firmware upgrading and similar operations. In real life almost all Bluetooth USB devices do not need firmware download. If device does require firmware download then ugen(4) (or specialized driver like ubtbcmfw(8)) should be used instead. MFC after: 3 days Notes: svn path=/head/; revision=136460
* Use generic tty code instead of local copies.Poul-Henning Kamp2004-10-121-118/+48
| | | | | | | | | | | New devicename is ttyz{port} No callout devices created. Isn't this driver superseeded by uart(4) anyway ? Notes: svn path=/head/; revision=136459
* update document dateJohn-Mark Gurney2004-10-121-1/+1
| | | | | | | Reminded by: ru (a few weeks ago) Notes: svn path=/head/; revision=136457
* Don't call driver close unless we have one.Poul-Henning Kamp2004-10-121-2/+4
| | | | Notes: svn path=/head/; revision=136456
* Attach the device description for ISA devices on the ACPI bus.Nate Lawson2004-10-121-0/+3
| | | | | | | MFC after: 1 day Notes: svn path=/head/; revision=136455
* Add a couple of XXX comments and fix a couple of fine points.Poul-Henning Kamp2004-10-121-2/+14
| | | | | | | I have not tried to make this a "canonical tty driver". Notes: svn path=/head/; revision=136454
* Remove asserts which are not correct if the port is a tty.Poul-Henning Kamp2004-10-121-7/+1
| | | | Notes: svn path=/head/; revision=136453
* Make !SMP kernels compile, and as far as I can tell, work again.Poul-Henning Kamp2004-10-121-1/+2
| | | | Notes: svn path=/head/; revision=136452
* Fix comment: since move from mballoc to mbuma, the allocation functions liveGleb Smirnoff2004-10-121-1/+1
| | | | | | | in kern_mbuf.c, not subr_mbuf.c Notes: svn path=/head/; revision=136451
* Use ttyconsolemode() to set the console tty modes.Poul-Henning Kamp2004-10-121-8/+1
| | | | Notes: svn path=/head/; revision=136450
* Don't release the udbinfo lock until after the last use of UDP inpcbRobert Watson2004-10-121-3/+3
| | | | | | | | | | | in udp_input(), since the udbinfo lock is used to prevent removal of the inpcb while in use (i.e., as a form of reference count) in the in-bound path. RELENG_5 candidate. Notes: svn path=/head/; revision=136449
* Whitespace fix.John Baldwin2004-10-121-1/+1
| | | | Notes: svn path=/head/; revision=136448
* Remove hcsecd line which was inadvertantly included in the previous commit.Dag-Erling Smørgrav2004-10-121-1/+0
| | | | Notes: svn path=/head/; revision=136447
* Remove a pointless syslogd_flags example.Dag-Erling Smørgrav2004-10-121-1/+1
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=136446
* Refine the turnstile and sleep queue interfaces just a bit:John Baldwin2004-10-127-77/+117
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add a new _lock() call to each API that locks the associated chain lock for a lock_object pointer or wait channel. The _lookup() functions now require that the chain lock be locked via _lock() when they are called. - Change sleepq_add(), turnstile_wait() and turnstile_claim() to lookup the associated queue structure internally via _lookup() rather than accepting a pointer from the caller. For turnstiles, this means that the actual lookup of the turnstile in the hash table is only done when the thread actually blocks rather than being done on each loop iteration in _mtx_lock_sleep(). For sleep queues, this means that sleepq_lookup() is no longer used outside of the sleep queue code except to implement an assertion in cv_destroy(). - Change sleepq_broadcast() and sleepq_signal() to require that the chain lock is already required. For condition variables, this lets the cv_broadcast() and cv_signal() functions lock the sleep queue chain lock while testing the waiters count. This means that the waiters count internal to condition variables is no longer protected by the interlock mutex and cv_broadcast() and cv_signal() now no longer require that the interlock be held when they are called. This lets consumers of condition variables drop the lock before waking other threads which can result in fewer context switches. MFC after: 1 month Notes: svn path=/head/; revision=136445
* Add a WITNESS_WARN() to uiomove() to whine if locks are held when thisJohn Baldwin2004-10-121-0/+2
| | | | | | | | | function is called. MFC after: 1 month Notes: svn path=/head/; revision=136444
* Modify the thrilling "%D is using my IP address %s!" message so thatRobert Watson2004-10-121-1/+7
| | | | | | | | | it isn't printed if the IP address in question is '0.0.0.0', which is used by nodes performing DHCP lookup, and so constitute a false positive as a report of misconfiguration. Notes: svn path=/head/; revision=136441
* When the access control on creating raw sockets was modified so thatRobert Watson2004-10-121-20/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | processes in jail could create raw sockets, additional access control checks were added to raw IP sockets to limit the ways in which those sockets could be used. Specifically, only the socket option IP_HDRINCL was permitted in rip_ctloutput(). Other socket options were protected by a call to suser(). This change was required to prevent processes in a Jail from modifying system properties such as multicast routing and firewall rule sets. However, it also introduced a regression: processes that create a raw socket with root privilege, but then downgraded credential (i.e., a daemon giving up root, or a setuid process switching back to the real uid) could no longer issue other unprivileged generic IP socket option operations, such as IP_TOS, IP_TTL, and the multicast group membership options, which prevented multicast routing daemons (and some other tools) from operating correctly. This change pushes the access control decision down to the granularity of individual socket options, rather than all socket options, on raw IP sockets. When rip_ctloutput() doesn't implement an option, it will now pass the request directly to in_control() without an access control check. This should restore the functionality of the generic IP socket options for raw sockets in the above-described scenarios, which may be confirmed with the ipsockopt regression test. RELENG_5 candidate. Reviewed by: csjp Notes: svn path=/head/; revision=136440
* Directly modifying the priority of a thread that may be on the runqueueStephan Uphoff2004-10-121-1/+1
| | | | | | | | | | | | can break the sorting order of the ksegp run queue. Tested by: pho Reviewed by: jhb, julian Approved by: sam (mentor) MFC: ASAP Notes: svn path=/head/; revision=136439
* Prevent preemption in slot_fill.Stephan Uphoff2004-10-121-1/+110
| | | | | | | | | | | | | Implement preemption between threads in the same ksegp in out of slot situations to prevent priority inversion. Tested by: pho Reviewed by: jhb, julian Approved by: sam (mentor) MFC: ASAP Notes: svn path=/head/; revision=136438
* Force MUTEX_WAKE_ALL.Stephan Uphoff2004-10-121-0/+9
| | | | | | | | | | | | A race condition in single thread wakeup may break priority inheritance. Tested by: pho Reviewed by: jhb,julian Approved by: sam (mentor) MFC: ASAP Notes: svn path=/head/; revision=136437
* Back out cumulative changes from revs. 1.92-1.94: "make depend"Ruslan Ermilov2004-10-121-1/+0
| | | | | | | | | | | followed by "make depend" shouldn't do anything. It doesn't seem to be a problem anymore, and if someone finds it to break again, please contact me so we can work on a real fix. Reviewed by: bde Notes: svn path=/head/; revision=136436
* Style fixes, including:Ruslan Ermilov2004-10-121-40/+34
| | | | | | | | | | | | | | | | | - Sort kmod.mk knobs in the documentation section. - Fixed misuses of the word "KLD" which stands for "kernel ld", or "kernel linker", where kernel module is meant. - Removed redundant uses of ${.OBJDIR}. - Whitespace and indentation fixes. - CLEANFILES cleanup. - Target redefinition protection (install.debug). Submitted by: bde, ru Reviewed by: ru, bde Notes: svn path=/head/; revision=136435
* Assert that the entropy source category provided by a caller submittingRobert Watson2004-10-121-0/+6
| | | | | | | | entropy is valid, as an invalid source will cause dereferencing of an array of queues to an incorrect memory location. Notes: svn path=/head/; revision=136434
* Add a note ahea of the esource enum that if new entropy sourceRobert Watson2004-10-121-0/+4
| | | | | | | | categories are added, the set of entropy source assertions in the harvesting code also need to be updated. Notes: svn path=/head/; revision=136433
* Correctly document the return value of strerror() and strerror_r() andGiorgos Keramidas2004-10-121-11/+10
| | | | | | | | | | | the contents of the returned buffer for unknown error codes. PR: docs/72578 Submitted by: Jilles Tjoelker <jilles@stack.nl> MFC after: 3 days Notes: svn path=/head/; revision=136432
* Document net.inet.tcp.sack.initburst sysctl.Maxim Konovalov2004-10-121-0/+3
| | | | Notes: svn path=/head/; revision=136431
* Do not enable ECHO modes by default when a tty port is opened. If the otherPoul-Henning Kamp2004-10-121-1/+1
| | | | | | | | device also does echo'ing this can result in a character-storm before we ever get a chance to disable the echo modes. Notes: svn path=/head/; revision=136430
* We accept both "option" and "options" so also accept both "nooption"Poul-Henning Kamp2004-10-121-0/+1
| | | | | | | and "nooptions". Notes: svn path=/head/; revision=136429
* Fix packet flow when both ng_ether(4) and bridge(4) are in use:Gleb Smirnoff2004-10-124-51/+37
| | | | | | | | | | | | | | | | | | - push all bridge logic from if_ethersubr.c into bridge.c make bridge_in() return mbuf pointer (or NULL). - call only bridge_in() from ether_input(), after ng_ether_input() was optinally called. - call bridge_in() from ng_ether_rcv_upper(). Long description: http://lists.freebsd.org/mailman/htdig/freebsd-net/2004-May/003881.html Reported by: Jian-Wei Wang <jwwang at FreeBSD.csie.NCTU.edu.tw> Tested by: myself, Sergey Lyubka Reviewed by: sam Approved by: julian (mentor) MFC after: 2 months Notes: svn path=/head/; revision=136428
* Mark i4b IPR and SPPP drivers as NET_NEEDS_GIANT(), as they bothRobert Watson2004-10-122-0/+4
| | | | | | | | | | | interface with the network stack but are not yet sufficiently synchronized to run without the Giant lock. It migh be possible to mark the interfaces as IFF_NEEDSGIANT, but I'm unable to test that configuration and am unfamiliar with the architecture of i4b. Notes: svn path=/head/; revision=136427
* Use generic tty code.Poul-Henning Kamp2004-10-121-94/+13
| | | | | | | New device names are ttyy{unit} Notes: svn path=/head/; revision=136426
* Use generic tty code instead of local copies.Poul-Henning Kamp2004-10-121-269/+98
| | | | | | | | | | | New devicename is ttyy{unit}{port} No callout devices created as there is no modemcontrol on these ports. Add data structure to represent each port to avoid excessive array use. Notes: svn path=/head/; revision=136425
* Pass through the commands necessary to format USB floppy devices,Bruce M Simpson2004-10-121-5/+4
| | | | | | | | | | | | from within umass_ufi_transform(). This includes the 12-byte commands FORMAT_UNIT, WRITE_AND_VERIFY, VERIFY, and READ_FORMAT_CAPACITIES (sorted in numerical order). Reviewed by: ken, scottl MFC after: 2 weeks Notes: svn path=/head/; revision=136424
* Add necessary data structures and definitions for the 12-byte SCSIBruce M Simpson2004-10-121-0/+79
| | | | | | | | | | | commands READ_FORMAT_CAPACITIES, WRITE_AND_VERIFY, and VERIFY. Reviewed by: ken, scottl Source: USB Mass Storage UFI Specification v1.0 MFC after: 2 weeks Notes: svn path=/head/; revision=136423
* Add mode page 0x1b, "Removable Block Access Capacities". This mode page isBruce M Simpson2004-10-121-0/+12
| | | | | | | | | | | implemented by USB floppy devices using the UFI command set. Reviewed by: ken, scottl Source: USB Mass Storage UFI Specification v1.0 MFC after: 2 weeks Notes: svn path=/head/; revision=136422
* Use generic tty code instead of (comparatively little) local copies.Poul-Henning Kamp2004-10-122-171/+52
| | | | Notes: svn path=/head/; revision=136421
* Add missing zero flag argument.Poul-Henning Kamp2004-10-121-1/+1
| | | | Notes: svn path=/head/; revision=136420
* Add zero flags argument to sysctl calls.Poul-Henning Kamp2004-10-121-1/+1
| | | | Notes: svn path=/head/; revision=136419
* Add missing zero flag arguments to sysctl calls.Poul-Henning Kamp2004-10-123-3/+3
| | | | | | | Add missing pointy hat to peter@ Notes: svn path=/head/; revision=136418