Bjoern A. Zeeb
f3aad9a6bb
Correct 32 vs 64 bit signedness issues.
...
Approved by: pjd (mentor)
MFC after: 2 weeks
2005-05-18 08:57:31 +00:00
Alan Cox
66f27aca69
Convert to the faster bus_dmamap_load_mbuf_sg() interface.
...
MFC after: 1 week
2005-05-18 07:45:08 +00:00
Paul Saab
7caeec6a13
Support passthru ioctl commands from 32bit binaries.
2005-05-18 05:31:34 +00:00
Dag-Erling Smørgrav
3f54cc0505
Ugh. Previous commit got the logic exactly backward.
...
Submitted by: bland
Pointy hat to: des
2005-05-17 18:23:03 +00:00
Lukas Ertl
0164489c96
When a drive dies, don't call g_wither_geom() directly, but instead
...
post an event to the geom event queue that will take care of it,
letting outstanding bios finish, and closing the consumers.
Plus some cosmetic clean ups.
2005-05-17 16:38:30 +00:00
Søren Schmidt
d78c6e89ae
Make certain the the 48bit flag is reset if we dont translate LBA.
2005-05-17 12:31:54 +00:00
Gleb Smirnoff
24ac2f1c5e
- Unwind NG_SEND_MSG_PATH() macro and merge it with already unwinded
...
version under TRACE_MESSAGES.
- Pass NG_WAITOK flag to ng_package_data() in unwinded macro.
2005-05-17 12:18:13 +00:00
Dag-Erling Smørgrav
ff17c7a727
Revision 1.173 broke updating a mount from ro to rw. Fix that by clearing
...
the MNT_RDONLY flag if MNT_UPDATE is set and "ro" was not specified.
Suggested by: cognet
2005-05-17 12:00:43 +00:00
Gleb Smirnoff
45b719ae22
Use NG_QUEUE instead of constant.
2005-05-16 19:52:42 +00:00
Paul Saab
4fc5324557
Introduce routines to alloc/free sack holes. This cleans up the code
...
considerably.
Submitted by: Noritoshi Demizu.
Reviewed by: Raja Mukerji, Mohan Srinivasan.
2005-05-16 19:26:46 +00:00
Gleb Smirnoff
d0784b4740
Refactor places where ng_package_data() failed.
...
Suggested & reviewed by: archie
2005-05-16 19:12:57 +00:00
Gleb Smirnoff
ae76957d25
- Fix build with TRACE_MESSAGES on.
...
- Reformat code under TRACE_MESSAGES to make it more readable.
- Move linker hackery out of #ifdef.
- Break long lines in linker hackery block.
2005-05-16 18:50:26 +00:00
Gleb Smirnoff
94b73ad3a9
Close race between node being shutdown and socket being detached. To
...
do this, obtain netgraph locking in detach method via ng_send_fn1().
Reviewed by: julian
MFC after: 2 weeks
2005-05-16 17:25:49 +00:00
Maksim Yevmenkin
b4b485a5d8
Dont clear all flags in vkbd_clear_state_locked(). Clear only COMPOSE flag.
...
MFC after: 3 days
2005-05-16 17:21:10 +00:00
Gleb Smirnoff
336b3f1e51
Catch up with new ng_package_data().
2005-05-16 17:10:08 +00:00
Gleb Smirnoff
3033e8026a
Catch up with new ng_package_data(). Use NG_WAITOK on userland
...
path.
2005-05-16 17:09:35 +00:00
Gleb Smirnoff
74eafa88cf
- Catch up with new interface to ng_package_data().
...
- Handle errors from ng_package_data().
2005-05-16 17:08:53 +00:00
Gleb Smirnoff
f6c9d18d2f
Catch up with new ng_send_fn1() interface.
2005-05-16 17:07:39 +00:00
Gleb Smirnoff
42282202ee
- Extend interface of ng_getqblk(), so that malloc wait flags are
...
specified by caller.
- Change ng_send_item() interface - use 'flags' argument instead of
boolean 'queue'.
- Extend ng_send_fn(), ng_package_data() and ng_package_msg()
interface - add possibility to pass flags. Rename ng_send_fn() to
ng_send_fn1(). Create macro for ng_send_fn().
- Update all macros, that use ng_package_data() and ng_package_msg().
Reviewed by: julian
2005-05-16 17:07:03 +00:00
Bill Paul
02fa4220cd
Correct type for workitem routines.
2005-05-16 16:50:52 +00:00
Darren Reed
051adc35a2
Enable building /sbin/ipf (but not the rescue version) with the ability to
...
parse bpf strings for filter rules in ipf.conf
2005-05-16 16:22:55 +00:00
Bill Paul
5b5687f6ba
Remove harmless bit of leftover debug code.
2005-05-16 15:44:41 +00:00
Bill Paul
d9ccba1ac4
Correct some problems with workitem usage. NdisScheduleWorkItem() does
...
not use exactly the same workitem sturcture as ExQueueWorkItem() like
I originally thought it did.
2005-05-16 15:29:21 +00:00
Søren Schmidt
ae337d1ee5
longer used (contents added to sys/ata.h)
2005-05-16 13:39:49 +00:00
Søren Schmidt
6667b30d15
Change the way ioctls are issue to ATA.
...
The most prominent part is that its now possible to issue ata_requests
directly to say acd0, instead of going through the cumbersome /dev/ata
device.
2005-05-16 13:07:27 +00:00
David E. O'Brien
b0c77ed9fb
Add the 2nd word of IA32 feature flags. This includes things such as SSE3.
...
Obtained from: sys/amd64/amd64/identcpu.
2005-05-16 09:47:53 +00:00
Gleb Smirnoff
85efd7165f
Correct format is 'options<space><tab>'.
...
Submitted by: ru
2005-05-16 09:05:46 +00:00
Gleb Smirnoff
73e872668d
Make NETGRAPH_DEBUG a kernel option, so that it can't be turned off
...
without hacking source.
In collaboration with: ru, julian
2005-05-16 08:25:55 +00:00
Warner Losh
ce86397a98
Add convenience functions to get port and interface.
2005-05-16 06:58:43 +00:00
Warner Losh
6b1fe67d59
Print a warning once when trying to bring up interface before firmware load.
2005-05-15 21:02:51 +00:00
Yoshihiro Takahashi
f4acf7e936
Remove old epson note support.
2005-05-15 09:07:42 +00:00
Yoshihiro Takahashi
6959aa373c
- Add color tables for 16 colors mode and 8 colors mode, use a different
...
table on the pc98 console.
- Remove old epson note support.
2005-05-15 09:07:04 +00:00
Yoshihiro Takahashi
8763b97d37
- Mask an underline attribute on the pc98 console. It enables to use the same
...
color on the pc98 and the others.
- Remove old epson note support.
2005-05-15 08:59:00 +00:00
Yoshihiro Takahashi
b4d6f74dce
Remove the ADJUST_CLOCK ioctl on pc98. It's not used at all.
2005-05-15 07:35:49 +00:00
Bill Paul
433d61bb56
Add support for NdisMEthIndicateReceive() and MiniportTransferData().
...
The Ralink RT2500 driver uses this API instead of NdisMIndicateReceivePacket().
Drivers use NdisMEthIndicateReceive() when they know they support
802.3 media and expect to hand their packets only protocols that want
to deal with that particular media type. With this API, the driver does
not manage its own NDIS_PACKET/NDIS_BUFFER structures. Instead, it
lets bound protocols have a peek at the data, and then they supply
an NDIS_PACKET/NDIS_BUFFER combo to the miniport driver, into which
it copies the packet data.
Drivers use NdisMIndicateReceivePacket() to allow their packets to
be read by any protocol, not just those bound to 802.3 media devices.
To make this work, we need an internal pool of NDIS_PACKETS for
receives. Currently, we check to see if the driver exports a
MiniportTransferData() method in its characteristics structure,
and only allocate the pool for drivers that have this method.
This should allow the RT2500 driver to work correctly, though I
still have to fix ndiscvt(8) to parse its .inf file properly.
Also, change kern_ndis.c:ndis_halt_nic() to reap timers before
acquiring NDIS_LOCK(), since the reaping process might entail sleeping
briefly (and we can't sleep with a lock held).
2005-05-15 04:27:59 +00:00
Darren Reed
05793fcbf0
Enable IPFilter to correctly determine if BPF has been optioned into the
...
kernel it is being compiled against and subsequently enable using BPF for
packet matching in ipf rules.
2005-05-15 03:34:17 +00:00
George V. Neville-Neil
403cbcf59f
Fixes for various nits found by the Coverity tool.
...
In particular 2 missed return values and an inappropriate bcopy from
a possibly NULL pointer.
Reviewed by: jake
Approved by: rwatson
MFC after: 1 week
2005-05-15 02:28:30 +00:00
Gleb Smirnoff
32247f8629
- When carp interface is destroyed, and it affects global preemption
...
suppresion counter, decrease the latter. [1]
- Add sysctl to monitor preemption suppression.
PR: kern/80972 [1]
Submitted by: Frank Volf [1]
MFC after: 1 week
2005-05-15 01:44:26 +00:00
Yoshihiro Takahashi
914ee8ba4b
Fix my copyright.
2005-05-14 10:51:16 +00:00
Yoshihiro Takahashi
dfe1941a9c
cosmetic change.
2005-05-14 10:26:31 +00:00
Yoshihiro Takahashi
b22bf66063
- Move bus dependent defines to {isa,cbus}_dmareg.h.
...
- Use isa/isareg.h rather than <arch>/isa/isa.h.
Tested on: i386, pc98
2005-05-14 10:14:56 +00:00
Gleb Smirnoff
8253c060cf
Move queue element routines upper, so that all related
...
declarations are in one place, to improve readability.
No functional changes.
2005-05-14 10:07:17 +00:00
Gleb Smirnoff
1489164f6b
Use uma(9) for allocating netgraph items:
...
- ng_getqblk() simply runs uma_zalloc().
- ng_free_item() simply frees.
- ngq_mtx is pushed down under NETGRAPH_DEBUG.
- NGQF_FREE is removed.
Increase default maxalloc to 512.
Reviewed by: julian
2005-05-14 09:25:18 +00:00
Yoshihiro Takahashi
24072ca35b
- Move timerreg.h to <arch>/include and split i8253 specific defines into
...
i8253reg.h, and add some defines to control a speaker.
- Move PPI related defines from i386/isa/spkr.c into ppireg.h and use them.
- Move IO_{PPI,TIMER} defines into ppireg.h and timerreg.h respectively.
- Use isa/isareg.h rather than <arch>/isa/isa.h.
Tested on: i386, pc98
2005-05-14 09:10:02 +00:00
Yoshihiro Takahashi
bc3729b63f
MFi386: revision 1.614.
2005-05-14 08:52:04 +00:00
Alan Cox
7daa3570e4
Revert revision 1.164: pmap_qremove() does not require protection by
...
VM_LOCK_GIANT.
Discussed with: jeff
2005-05-14 05:09:11 +00:00
Peter Grehan
edaccfc8bb
Remove incorrect configuration setting that limited the Kauai ATA controller
...
to be master-only. The slave ATAPI drive on the Mac-Mini is now recognised.
2005-05-14 02:11:45 +00:00
Paul Saab
fdace17f81
Fix for a bug where the "nexthole" sack hint is out of sync with the
...
real next hole to retransmit from the scoreboard, caused by a bug
which did not update the "nexthole" hint in one case in
tcp_sack_option().
Reported by: Daniel Eriksson
Submitted by: Mohan Srinivasan
2005-05-13 18:02:02 +00:00
Xin LI
9242b38b0d
Bump __FreeBSD_version for POSIX ttyname_r(3) changes.
...
Forgotten by: me
Reminded by: mezz
2005-05-13 17:31:32 +00:00
Gleb Smirnoff
b3cf6808ce
In div_output() explicitly set m->m_nextpkt to NULL. If divert socket
...
is not userland, but ng_ksocket, then m->m_nextpkt may be non-NULL. In
this case we would panic in sbappend.
2005-05-13 11:44:37 +00:00