pooka
5005d343ec
* __unused games + other relevant fixes
...
* give me ANSI C or give me death (at least where it could be easily spotted)
2006-10-16 13:00:36 +00:00
pooka
1810947bb4
make compile by using __unused & other necessary tricks
...
and remove <0 comparisons for bus_size_t. if a port wants signed
bus_size_t, it just might have to accept it can't use this driver. *snif*
2006-10-16 12:58:54 +00:00
martin
7815b7efa3
Missing initializers
2006-10-15 21:01:03 +00:00
martin
9128c4105e
Missing initializer
2006-10-15 20:54:49 +00:00
martin
c8982ceb2a
Missing initializers
2006-10-15 20:50:29 +00:00
martin
9384ee0db9
Missing initializer
2006-10-15 19:53:27 +00:00
martin
c335701fe5
Add missing initializer
2006-10-15 19:43:45 +00:00
martin
ac4b729ce4
Add some initializers
2006-10-15 19:32:37 +00:00
martin
61baadbc7f
Add missing initializer
2006-10-15 19:29:10 +00:00
tsutsui
fec9e58b4d
In vge_newbuf(), don't adjust packet length twice by m_adj(9)
...
in case of __NO_STRICT_ALIGNMENT. We can adjust m_data directly
since it's allocated by MCLGET(9) just above.
(though the length is not used anyway)
2006-10-15 11:52:36 +00:00
tsutsui
76a3c671ce
Umm, remove a DELAY() added in previous. It seems to cause another problem.
2006-10-15 10:54:15 +00:00
tsutsui
2412a17a18
On sgimips (R5000 O2), it seems that the first EEPROM read data
...
right after vge_reset() could be corrupted. For workaround, add a
dummy EEPROM read in vge_reset() so that MAC address is properly
set on the machine.
While here, add a DELAY() in busy loop in vge_read_eeprom().
2006-10-15 10:33:25 +00:00
tsutsui
4751084399
Oops, use correct dmamap to sync DMA descriptors.
...
Found by DIAGNOSTIC code in sgimips/bus.c:_bus_dmamap_sync_mips3().
2006-10-15 09:37:27 +00:00
itohy
b1d32ad8f3
white space police
2006-10-15 00:00:00 +00:00
itohy
65b52f68a1
Add ATAPI Pioneer (info from Linux) and ATA TDK (I have one)
...
as exceptions of string byte order.
Add string byte order shuffling for big-endian platforms.
2006-10-14 23:54:14 +00:00
bjh21
bafb9c4f84
The SEC uses the same page latch for both ROM and RAM, so we should arrange
...
to reset it to 0 on shutdown so that RISC OS gets to see the start of the
ROM.
2006-10-14 21:47:11 +00:00
tsutsui
657cf77ed2
- use MGETHDR() and MCLGET() rather than m_gethdr() and m_clget()
...
- KNF, ANSIfy, remove register decls
- some more cosmetics
2006-10-14 19:53:51 +00:00
tsutsui
607772f8e4
- call bus_dmamap_sync() properly (sigh)
...
- merge vge_dma_map_rx_desc() and vge_dma_map_tx_desc() into callers
- declare DMA descs volatile
- remove unused macro/declarations
- bzero -> memset
- some more cosmetics
2006-10-14 19:10:35 +00:00
tsutsui
4ee87b9180
- use correct dmamap size for TX/RX DMA descriptors
...
- use __NO_STRICT_ALIGNMENT directly rather than local VGE_FIXUP_RX
- no need to use BUS_DMA_ALLOCNOW
- remove unneeded members from softc
XXX: Is vge_fixup_rx() really more efficient than memmove(9),
XXX: or allocating a new buffer and memcpy(9) into it?
XXX: Anyway, vge(4) is not recommended for non-x86 hosts at all
XXX: because it requires copying buffers by CPU on RX.
2006-10-14 16:45:46 +00:00
tsutsui
cd07b37a00
Umm, set Ethernet address into softc properly.
2006-10-14 15:53:23 +00:00
tsutsui
63bc3bee0c
- fix eeprom read function so that MAC address can be read correctly
...
on big endian machines
- add some missed byteswap functions for DMA descriptors
2006-10-14 11:29:15 +00:00
dogcow
4c85d8a8d6
more super exciting fun unused arguments.
2006-10-14 01:49:20 +00:00
christos
6c265266c5
more __unused
2006-10-13 20:53:59 +00:00
dogcow
44603cac1f
more unused variable fallout.
2006-10-13 18:28:06 +00:00
dogcow
2023789a40
More -Wunused fallout. sprinkle __unused when possible; otherwise, use the
...
do { if (&x) {} } while (/* CONSTCOND */ 0);
construct as suggested by uwe in <20061012224845.GA9449@snark.ptc.spbu.ru>.
2006-10-13 16:53:35 +00:00
yamt
e3c9a705bc
re_start: fix tx stall.
2006-10-13 11:06:15 +00:00
yamt
04200ace96
re_txeof: fix watchdog timeout.
2006-10-13 11:02:38 +00:00
hannken
e94d6cd4a7
Add __unused to unused function arguments.
2006-10-13 10:42:19 +00:00
uwe
44b3507820
-Wextra fixes
2006-10-12 21:19:13 +00:00
dogcow
e5fd0c244b
more __unused; also, ew, K&R decls.
2006-10-12 20:16:59 +00:00
xtraeme
7455ba536b
sigh, another missing __unused.
2006-10-12 17:50:07 +00:00
xtraeme
1b2a823a5f
Use __unused in function arguments where appropiate.
2006-10-12 07:43:39 +00:00
xtraeme
9b97f910cf
More -Wunused warnings.
2006-10-12 07:39:27 +00:00
xtraeme
4a09170d84
Use __unused in function arguments where appropiate. (hi christos)
2006-10-12 06:56:47 +00:00
thorpej
6cd7a64f41
Add __unused as necessary.
2006-10-12 04:32:34 +00:00
christos
4d595fd7b1
- sprinkle __unused on function decls.
...
- fix a couple of unused bugs
- no more -Wno-unused for i386
2006-10-12 01:30:41 +00:00
gdt
ac02696458
Aggregate discharge rate over all batteries. Makes time remaining
...
reasonable when battery 0 is in use and battery 1 is fully discharged.
2006-10-11 19:14:29 +00:00
gdt
cf2f8187a8
Aggregate current charge level and lastcap over all batteries, rather
...
than taking values from the last battery checked. Solves problem of
apm showing status of 2nd battery in a 2-battery system.
2006-10-11 19:00:12 +00:00
gdt
53eda44ae8
Match Novatel FlexPak GPS receiver and Sierra Aircard 580 (used with
...
Sprint EVDO). From Armando Caro via acert.ir.bbn.com.
2006-10-11 14:32:28 +00:00
gdt
b0c7441253
regen
2006-10-11 13:03:28 +00:00
gdt
2be186222f
Add ids for Sierra Aircard 580 (for Sprint EVDO) and Novatel Flexpack
...
GPS receivers.
2006-10-11 13:02:58 +00:00
jmcneill
648920a00e
Size is the third argument to memset, not the second.
2006-10-11 05:12:06 +00:00
riz
cc84101104
Also print blksize with %u - this is what I get for eyeballing
...
a patch instead of applying it directly. PR#33966.
2006-10-10 23:35:29 +00:00
riz
31568e4a8e
Print an unsigned parameter with %lu, not %ld. From David A. Holland
...
in PR#33966.
2006-10-10 23:30:23 +00:00
he
4072b525cc
The use of a local variable is conditional on FBDEBUG, so make the
...
declaration too. Makes this build without FBDEBUG defined.
2006-10-10 23:09:21 +00:00
elad
08544bdaa5
Use kauth(9) instead of securelevel.
...
okay cube@
2006-10-10 10:23:58 +00:00
scw
056c6fdd05
Some removable umass(4) devices don't respond to mode sense page 6, or
...
simply return zero for logical block size. In either case, use the sector
length reported by READ_CAPACITY instead of defaulting to 512 bytes.
This partially addresses the problems reported in PR port-i386/34707 and
PR kern/34737. Namely the incorrectly reported drive geometry and the
'hanging' issue.
However, since the device in question reports 2048-byte physical sectors
it will remain unusable until DEV_BSIZE is banished.
2006-10-09 21:29:14 +00:00
jkunz
007f7a7a2a
Bringing up a fpa(4) interface on sparc(64) causes a hard kernel crash
...
(infinite loop) due to the way fpa(4) interacts with bus_dma(9).
This fixes the problem and makes fpa(4) usable on sparc(64).
2006-10-09 20:45:19 +00:00
cube
199c1347ea
Add an entry for the 2 UARTs version of the Moschip NM9835.
2006-10-09 20:33:04 +00:00
cube
5816119e8b
Regen.
2006-10-09 20:31:57 +00:00