dyoung
a14d2f3527
Simplify device-activation hooks.
2009-12-06 23:17:09 +00:00
dyoung
e98edc8502
Delete dead code.
2009-12-06 23:15:59 +00:00
dyoung
be75895d2f
Simplify device-activation hook.
2009-12-06 23:14:39 +00:00
dyoung
e347b9986c
Simplify device-activation hooks.
2009-12-06 23:14:05 +00:00
dyoung
0a9ae61983
device_t/softc split.
2009-12-06 23:05:39 +00:00
dyoung
903d1910d3
Simplify device-activation hooks.
2009-12-06 23:05:06 +00:00
dyoung
c2a519975e
Simplify device-activation hook.
2009-12-06 22:56:56 +00:00
dyoung
b9e4d3a3cb
Delete the do-nothing device-activation hook, drm_activate().
2009-12-06 22:51:25 +00:00
dyoung
c6747de6d7
Simplify device-activation hooks.
2009-12-06 22:49:48 +00:00
dyoung
93c9b12505
Delete do-nothing device-activation hooks.
2009-12-06 22:48:17 +00:00
dyoung
8cbd7f7c54
Delete dead code: a device-activation hook.
2009-12-06 22:44:55 +00:00
dyoung
4075f812e7
Simplify these device-activation hooks using the following semantic
...
patch.
XXX sc_dying must die.
@@
type device_t;
identifier act, midi_softc, midiactivate, sc, self;
@@
int
midiactivate(device_t self, enum devact act)
{
(
struct midi_softc *sc = device_private(self);
|
- struct midi_softc *sc;
+ struct midi_softc *sc = device_private(self);
...
- sc = device_private(self);
)
...
switch (act) {
- case DVACT_ACTIVATE:
- return (EOPNOTSUPP);
-
case DVACT_DEACTIVATE:
(
sc->dying
|
sc->sc_dying
)
=
(
1
|
true
)
;
- break;
+ return 0;
+ default:
+ return EOPNOTSUPP;
}
- return (0);
}
2009-12-06 22:42:48 +00:00
dyoung
de0ad50405
Delete unnecessary device-activation hooks.
2009-12-06 22:40:56 +00:00
dyoung
711b27c90c
Delete unnecessary device-activation hooks. Simplify the rest.
2009-12-06 22:33:44 +00:00
dyoung
efc6bfe74a
Simplify device-activation hooks.
2009-12-06 21:40:31 +00:00
dyoung
7a2bcc8004
Delete the device-activation hook, it doesn't do anything useful.
2009-12-06 21:39:45 +00:00
dyoung
3dedfc004f
Simplify the device-activation hook. Move some of the device
...
deactivation to the detachment routine, where it belongs.
2009-12-06 21:33:45 +00:00
dsl
43bac9730d
Correct comment, pipelock() no longer releases the mutex.
2009-12-06 20:26:55 +00:00
dyoung
110a4ba3b4
Simplify several device-activation hooks.
2009-12-06 20:20:12 +00:00
dyoung
8641587693
For readability's sake, write NULL instead of (type *)0.
2009-12-06 18:00:15 +00:00
agc
5b91f35fb9
Fix up some lint.
...
Change the license on new files to a 2-clause one.
2009-12-06 17:43:05 +00:00
dsl
835104494b
If pfi_address_add() has to extend the buffer, copy the data in the
...
right direction!
Fixes PR/41939.
2009-12-06 16:46:11 +00:00
dsl
111a678bed
VNDIOCSET now returns a 64bit unsigned size.
...
Use compat ioctls if the kernel rejects the request.
Fixes PR/41873.
2009-12-06 16:35:16 +00:00
dsl
b2df25db53
Make vnd_size (the returned size) 64 bit, keeping old field for ioctl
...
compatibility. Both fields are now unsigned.
Add compatibility for the old ioctl size.
Detect and error files which are definitely sparse (va_bytes < va_size).
Part of fix for PR/41873.
2009-12-06 16:33:18 +00:00
uebayasi
1675a3f293
Simplify how MKZFS is set. No functional changes.
2009-12-06 16:15:15 +00:00
uebayasi
acfaaf21f8
Correct the dependency; makeerrnos.sh generates misc.c and misc.h. dump.c
...
is never involved there. Those dependency has been wrong since Rev. 1.1.
2009-12-06 14:37:36 +00:00
haad
8181298188
Add support for DM_QUERY_INACTIVE_TABLE_FLAG to dm_table_status and dm_table_deps
...
this flag was introduced to dm->lvm protocol in 4.16.0 version of it. Restore
vrsion check functionality and sent back actual kernel driver version.
2009-12-06 14:33:46 +00:00
haad
676cba4177
Make our driver version equal to linux driver.
2009-12-06 14:31:16 +00:00
dsl
e0f6481d6a
Move BLUE_STATS to a commented out line since it is always enabled in
...
the source file. Fixes PR/35390.
2009-12-06 14:03:23 +00:00
nakayama
528ef864b7
Call iommu_strbuf_flush_done every iommu_enter is too expensive,
...
so call it once if needed.
2009-12-06 13:39:22 +00:00
tsutsui
8ab3a33f47
Put asm objects into OBJS, not dependencies for all target.
2009-12-06 13:31:16 +00:00
tsutsui
25aced04f4
Create machine and ${MACHINE_CPU} symlinks properly and
...
remove unnecessary dependencies so that parallel build works.
2009-12-06 13:28:04 +00:00
kiyohara
24a2c2d7c2
Add unistone.
2009-12-06 13:21:37 +00:00
nakayama
0db9becb3d
Make is_dvmaend point to the last DVMA map address not the next
...
address, and fix off by one errors.
Also, do some optimization.
2009-12-06 13:15:25 +00:00
uebayasi
37469dacdd
Provide the phony "tags" target as previous. Make it depend on the real
...
target. In case someone assumes the target as an interface.
2009-12-06 12:56:59 +00:00
kiyohara
4e74fe3282
Support Infineon UniStone (PBA31308).
...
from Gumstix's bluez-utils-hciattach-pba31308.patch.
tested on Gumstix verdex-pro.
2009-12-06 12:55:46 +00:00
kiyohara
adcbe4e3eb
Fix some bugs.
...
1. Remove O_NDELAY. Please block it. Or read() returns EAGAIN.
2. We want data size. header already read.
3. Call errx(). errno(2) unspecified at now.
2009-12-06 12:47:37 +00:00
kiyohara
c7fee8db52
Check return values.
2009-12-06 12:31:07 +00:00
kiyohara
69144e751e
Fix comment. CSR use BlueCore command.
2009-12-06 12:29:48 +00:00
kiyohara
e904f28b1a
Enable UART clock in pxauart_attach().
2009-12-06 12:27:33 +00:00
kiyohara
f551a32a10
Add ukphy(4).
2009-12-06 12:23:24 +00:00
kiyohara
19077e5352
Split internal phy. We can use ukphy(4).
...
SMSC manufactures some PHY. This PHY is built into LAN9x18 Family.
2009-12-06 12:22:17 +00:00
uebayasi
0b52043222
Fix typo in previous.
2009-12-06 11:16:26 +00:00
kiyohara
92ea44f8c3
Add drvctl.
...
Update some bluetooth related comments.
Remove some white-spaces.
2009-12-06 09:40:51 +00:00
wiz
19c8fa4ec7
Fix a typo (#endiif -> #endif).
...
Problem found while building kdesdk3.
2009-12-06 09:16:16 +00:00
uebayasi
09afef2063
Rename ${SRCS.{alpha,arm,...}.gen} to ${LSRCS.{alpha,arm,...}.gen} because
...
they ended up in ${LSRCS}, not ${SRCS}. ${SRCS.*} namespace will be used
for more useful things. No functional changes intended.
2009-12-06 07:12:17 +00:00
uebayasi
619e0bd90e
Set ${SRCS.softfloat}.
2009-12-06 07:05:50 +00:00
tsutsui
88e9ae94fe
Remove old MD pmap.c files for amiga and atari.
...
They no longer work due to reorganization of common pmap_motorola.c.
2009-12-06 06:46:25 +00:00
tsutsui
31af389001
Move initialization of protection_codes[] and kernel_pmap()
...
from MD pmap bootstrap sources to common pmap_bootstrap_finalize().
Tested on atari, hp300, mac68k, and news68k.
XXX: Why is protection_codes[] array initialized at run time?
2009-12-06 06:41:28 +00:00
uebayasi
c1fa6bf05b
Make the local "tags" target an absolute path, ${.OBJDIR}/tags, otherwise
...
it conflicts with the "tags" target defined in bsd.own.mk, which is .PHONY,
which causes you to re-build "tags" everytime you re-run make.
2009-12-06 06:30:52 +00:00