Commit Graph

186060 Commits

Author SHA1 Message Date
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
uebayasi f0d2ed931c Assign quad / softfloat specific ${SRCS} to ${SRCS.quad} / ${SRCS.softfloat}
then append them to ${SRCS}.  Those will be used to generate quad / softfloat
symbol lists.
2009-12-06 05:34:42 +00:00
tsutsui 378ad8db55 Sync MMU table initialization with amiga and atari a bit:
- for 040/060, move L2 descs for Sysptmap from the last L2 block in segment
  table pages to the contiguous block with ones for segment table mappings

- for 020/030, invalidate ste and pte entries separately since
  ste size (TIA_SIZE) and pte size (TIB_SIZE) could be different
  on 8KB/page systems

Tested on hp300 (040), mac68k (LC040), and news68k (030)
(and untested on others).

XXX: some more stuff in pmap_bootstrap.c could be moved into
XXX: common pmap_bootstrap_finalize()?
2009-12-06 02:42:34 +00:00
nakayama 38859c1df9 psycho_ue():
- remove printing of pa, it is irrelevant value since va address
  passed to iommu_extract is incorrect and we can look at it in
  IOTTE.
- print correct IOVA address.

While there, convert printf to aprint_error_dev and remove long
long casts by using PRIx64.
2009-12-06 01:35:40 +00:00
tsutsui a1e417bc5e pm_stfree in struct pmap is a bitmap value so make it unsigned. 2009-12-06 00:33:58 +00:00
tsutsui 9ca3f123d3 Use proper macro, variable names, types, and assignments for readability. 2009-12-05 23:16:57 +00:00
pooka 09aa8689fb Cast Oh Kath Ra once every second. 2009-12-05 22:44:08 +00:00
pooka 4a2258a070 remove cv_wakeup.9 (it wasn't documented, just linked) 2009-12-05 22:43:34 +00:00
pooka d2445bdd09 tsleep() on lbolt is now illegal. Convert cv_wakeup(&lbolt) to
cv_broadcast(&lbolt) and get rid of the prior.
2009-12-05 22:38:19 +00:00
pooka faa8e1b3e3 Convert tsleep(&lbolt) to kpause(). Make ltsleep/mtsleep on lbolt
illegal.  I examined all places where lbolt is referenced to make
sure there were pointer aliases of it passed to tsleep, but put a
KASSERT in m/ltsleep() just to be sure.
2009-12-05 22:34:43 +00:00
mrg 14a6b5c89f - adjust the PA mask to the 43 bits supported by USIII.
- rework the spitfire/cheetah cache_flush_phys() to avoid several #ifdefs
- add a membar #Sync after sparc64_ipi_drop_fpstate (probably unnecessary)
2009-12-05 22:25:51 +00:00