From owner-p4-projects@FreeBSD.ORG Sun Sep 21 04:34:15 2008
Return-Path:
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id 17E35106566C; Sun, 21 Sep 2008 04:34:15 +0000 (UTC)
Delivered-To: perforce@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
by hub.freebsd.org (Postfix) with ESMTP id B6577106564A
for ; Sun, 21 Sep 2008 04:34:14 +0000 (UTC)
(envelope-from imp@freebsd.org)
Received: from repoman.freebsd.org (repoman.freebsd.org
[IPv6:2001:4f8:fff6::29])
by mx1.freebsd.org (Postfix) with ESMTP id A24C18FC16
for ; Sun, 21 Sep 2008 04:34:14 +0000 (UTC)
(envelope-from imp@freebsd.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id m8L4YEhJ047662
for ; Sun, 21 Sep 2008 04:34:14 GMT
(envelope-from imp@freebsd.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.14.3/8.14.3/Submit) id m8L4YEHs047638
for perforce@freebsd.org; Sun, 21 Sep 2008 04:34:14 GMT
(envelope-from imp@freebsd.org)
Date: Sun, 21 Sep 2008 04:34:14 GMT
Message-Id: <200809210434.m8L4YEHs047638@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
imp@freebsd.org using -f
From: Warner Losh
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 150188 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Sun, 21 Sep 2008 04:34:15 -0000
http://perforce.freebsd.org/chv.cgi?CH=150188
Change 150188 by imp@imp_paco-paco on 2008/09/21 04:33:24
IFC @150187
Affected files ...
.. //depot/projects/mips2/src/Makefile.inc1#24 integrate
.. //depot/projects/mips2/src/lib/libc/gen/getosreldate.3#2 integrate
.. //depot/projects/mips2/src/lib/libc/uuid/Symbol.map#4 integrate
.. //depot/projects/mips2/src/lib/libpmc/pmc.3#8 integrate
.. //depot/projects/mips2/src/sbin/ipfw/ipfw2.c#11 integrate
.. //depot/projects/mips2/src/sbin/mount_nfs/mount_nfs.c#6 integrate
.. //depot/projects/mips2/src/share/man/man5/rc.conf.5#15 integrate
.. //depot/projects/mips2/src/sys/boot/ofw/libofw/Makefile#4 integrate
.. //depot/projects/mips2/src/sys/boot/ofw/libofw/ofw_console.c#4 integrate
.. //depot/projects/mips2/src/sys/compat/freebsd32/freebsd32_misc.c#11 integrate
.. //depot/projects/mips2/src/sys/compat/freebsd32/freebsd32_proto.h#13 integrate
.. //depot/projects/mips2/src/sys/compat/freebsd32/freebsd32_syscall.h#13 integrate
.. //depot/projects/mips2/src/sys/compat/freebsd32/freebsd32_syscalls.c#13 integrate
.. //depot/projects/mips2/src/sys/compat/freebsd32/freebsd32_sysent.c#13 integrate
.. //depot/projects/mips2/src/sys/compat/freebsd32/syscalls.master#14 integrate
.. //depot/projects/mips2/src/sys/conf/files.mips#25 integrate
.. //depot/projects/mips2/src/sys/conf/files.sparc64#9 integrate
.. //depot/projects/mips2/src/sys/conf/options.sparc64#4 integrate
.. //depot/projects/mips2/src/sys/dev/acpica/acpi_quirk.c#3 integrate
.. //depot/projects/mips2/src/sys/dev/ath/if_ath.c#12 integrate
.. //depot/projects/mips2/src/sys/dev/ath/if_athvar.h#7 integrate
.. //depot/projects/mips2/src/sys/dev/cxgb/cxgb_osdep.h#10 integrate
.. //depot/projects/mips2/src/sys/dev/cxgb/ulp/tom/cxgb_defs.h#5 integrate
.. //depot/projects/mips2/src/sys/dev/cxgb/ulp/tom/cxgb_tom.c#6 integrate
.. //depot/projects/mips2/src/sys/dev/pci/vga_pci.c#3 integrate
.. //depot/projects/mips2/src/sys/dev/snp/snp.c#8 integrate
.. //depot/projects/mips2/src/sys/dev/usb/if_zyd.c#10 integrate
.. //depot/projects/mips2/src/sys/dev/usb/usbdevs#24 integrate
.. //depot/projects/mips2/src/sys/fs/devfs/devfs_vnops.c#13 integrate
.. //depot/projects/mips2/src/sys/fs/fdescfs/fdesc_vnops.c#9 integrate
.. //depot/projects/mips2/src/sys/fs/hpfs/hpfs_vnops.c#5 integrate
.. //depot/projects/mips2/src/sys/fs/msdosfs/msdosfs_vnops.c#11 integrate
.. //depot/projects/mips2/src/sys/fs/ntfs/ntfs_vnops.c#4 integrate
.. //depot/projects/mips2/src/sys/fs/portalfs/portal_vnops.c#6 integrate
.. //depot/projects/mips2/src/sys/fs/pseudofs/pseudofs_vnops.c#7 integrate
.. //depot/projects/mips2/src/sys/fs/smbfs/smbfs_node.c#8 integrate
.. //depot/projects/mips2/src/sys/fs/tmpfs/tmpfs_vnops.c#13 integrate
.. //depot/projects/mips2/src/sys/fs/udf/udf_vnops.c#6 integrate
.. //depot/projects/mips2/src/sys/gnu/fs/xfs/FreeBSD/xfs_vnops.c#6 integrate
.. //depot/projects/mips2/src/sys/i386/i386/pmap.c#22 integrate
.. //depot/projects/mips2/src/sys/kern/uipc_mqueue.c#9 integrate
.. //depot/projects/mips2/src/sys/kern/vfs_mount.c#19 integrate
.. //depot/projects/mips2/src/sys/kern/vfs_vnops.c#11 integrate
.. //depot/projects/mips2/src/sys/mips/adm5120/obio.c#5 integrate
.. //depot/projects/mips2/src/sys/mips/idt/obio.c#5 integrate
.. //depot/projects/mips2/src/sys/mips/malta/gt_pci.c#5 integrate
.. //depot/projects/mips2/src/sys/mips/mips/intr_machdep.c#9 integrate
.. //depot/projects/mips2/src/sys/net/if_clone.c#3 integrate
.. //depot/projects/mips2/src/sys/net/if_clone.h#3 integrate
.. //depot/projects/mips2/src/sys/net/route.c#12 integrate
.. //depot/projects/mips2/src/sys/net/route.h#7 integrate
.. //depot/projects/mips2/src/sys/net80211/ieee80211_freebsd.c#9 integrate
.. //depot/projects/mips2/src/sys/nfsclient/nfs_vnops.c#11 integrate
.. //depot/projects/mips2/src/sys/sparc64/include/tick.h#3 integrate
.. //depot/projects/mips2/src/sys/sparc64/sparc64/mp_machdep.c#11 integrate
.. //depot/projects/mips2/src/sys/sparc64/sparc64/tick.c#5 integrate
.. //depot/projects/mips2/src/sys/sys/mount.h#11 integrate
.. //depot/projects/mips2/src/sys/ufs/ufs/ufs_vnops.c#11 integrate
.. //depot/projects/mips2/src/sys/vm/vm_mmap.c#11 integrate
.. //depot/projects/mips2/src/tools/tools/net80211/scripts/config#2 integrate
.. //depot/projects/mips2/src/usr.bin/ar/Makefile#3 integrate
.. //depot/projects/mips2/src/usr.bin/ar/acplex.l#1 branch
.. //depot/projects/mips2/src/usr.bin/ar/acpyacc.y#1 branch
.. //depot/projects/mips2/src/usr.bin/ar/ar.c#3 integrate
.. //depot/projects/mips2/src/usr.bin/ar/ar.h#3 integrate
.. //depot/projects/mips2/src/usr.bin/ar/write.c#4 integrate
.. //depot/projects/mips2/src/usr.sbin/Makefile#15 integrate
.. //depot/projects/mips2/src/usr.sbin/pmcstat/pmcstat.8#6 integrate
.. //depot/projects/mips2/src/usr.sbin/pmcstat/pmcstat.c#8 integrate
Differences ...
==== //depot/projects/mips2/src/Makefile.inc1#24 (text+ko) ====
@@ -1,5 +1,5 @@
#
-# $FreeBSD: src/Makefile.inc1,v 1.610 2008/08/19 14:23:26 jhb Exp $
+# $FreeBSD: src/Makefile.inc1,v 1.611 2008/09/19 16:14:42 obrien Exp $
#
# Make command line options:
# -DNO_CLEANDIR run ${MAKE} clean, instead of ${MAKE} cleandir
@@ -27,6 +27,10 @@
.include
+.if ${MACHINE_ARCH} == "mips"
+MK_RESCUE=no # not yet
+.endif
+
# We must do share/info early so that installation of info `dir'
# entries works correctly. Do it first since it is less likely to
# grow dependencies on include and lib than vice versa.
==== //depot/projects/mips2/src/lib/libc/gen/getosreldate.3#2 (text+ko) ====
@@ -22,7 +22,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $FreeBSD: src/lib/libc/gen/getosreldate.3,v 1.3 2005/12/03 05:11:07 ambrisko Exp $
+.\" $FreeBSD: src/lib/libc/gen/getosreldate.3,v 1.4 2008/09/20 21:12:54 rodrigc Exp $
.\"
.Dd December 2, 2005
.Dt GETOSRELDATE 3
@@ -34,7 +34,6 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.In osreldate.h
.Ft int
.Fn getosreldate void
.Sh DESCRIPTION
==== //depot/projects/mips2/src/lib/libc/uuid/Symbol.map#4 (text) ====
@@ -1,5 +1,5 @@
/*
- * $FreeBSD: src/lib/libc/uuid/Symbol.map,v 1.3 2008/09/15 23:54:55 emax Exp $
+ * $FreeBSD: src/lib/libc/uuid/Symbol.map,v 1.4 2008/09/19 15:52:56 emax Exp $
*/
FBSD_1.0 {
@@ -11,6 +11,9 @@
uuid_create_nil;
uuid_create;
uuid_compare;
+};
+
+FBSD_1.1 {
uuid_enc_le;
uuid_dec_le;
uuid_enc_be;
==== //depot/projects/mips2/src/lib/libpmc/pmc.3#8 (text+ko) ====
@@ -21,7 +21,7 @@
.\" out of the use of this software, even if advised of the possibility of
.\" such damage.
.\"
-.\" $FreeBSD: src/lib/libpmc/pmc.3,v 1.20 2008/09/18 10:20:35 jkoshy Exp $
+.\" $FreeBSD: src/lib/libpmc/pmc.3,v 1.21 2008/09/19 13:21:23 jkoshy Exp $
.\"
.Dd September 16, 2008
.Os
@@ -242,13 +242,13 @@
.It Li PMC_CAP_INVERT
The ability to invert the sense of the hardware conditions being
measured.
-.It Li PMC_CAP_READ
-The ability to read from performance counters.
+.It Li PMC_CAP_PRECISE
+The ability to perform precise sampling.
.It Li PMC_CAP_QUALIFIER
The hardware allows monitored to be further qualified in some
system dependent way.
-.It Li PMC_CAP_PRECISE
-The ability to perform precise sampling.
+.It Li PMC_CAP_READ
+The ability to read from performance counters.
.It Li PMC_CAP_SYSTEM
The ability to restrict counting of hardware events to when the CPU is
running privileged code.
==== //depot/projects/mips2/src/sbin/ipfw/ipfw2.c#11 (text+ko) ====
@@ -17,7 +17,7 @@
*
* NEW command line interface for IP firewall facility
*
- * $FreeBSD: src/sbin/ipfw/ipfw2.c,v 1.121 2008/09/06 17:23:37 rik Exp $
+ * $FreeBSD: src/sbin/ipfw/ipfw2.c,v 1.125 2008/09/20 19:25:02 rik Exp $
*/
#include
@@ -3569,7 +3569,7 @@
char **av, *sep; /* Token separator. */
/* Temporary buffer used to hold server pool ip's. */
char tmp_spool_buf[NAT_BUF_LEN];
- int ac, i, space, lsnat;
+ int ac, space, lsnat;
struct cfg_redir *r;
struct cfg_spool *tmp;
@@ -3788,7 +3788,7 @@
int *_ac, char ***_av)
{
char **av;
- int ac, i, space;
+ int ac, space;
struct protoent *protoent;
struct cfg_redir *r;
@@ -3975,7 +3975,6 @@
config_nat(int ac, char **av)
{
struct cfg_nat *n; /* Nat instance configuration. */
- struct in_addr ip;
int i, len, off, tok;
char *id, buf[NAT_BUF_LEN]; /* Buffer for serialized data. */
@@ -5937,6 +5936,11 @@
l = sizeof(a);
if (do_cmd(IP_FW_TABLE_GETSIZE, &a, (uintptr_t)&l) < 0)
err(EX_OSERR, "getsockopt(IP_FW_TABLE_GETSIZE)");
+
+ /* If a is zero we have nothing to do, the table is empty. */
+ if (a == 0)
+ return;
+
l = sizeof(*tbl) + a * sizeof(ipfw_table_entry);
tbl = malloc(l);
if (tbl == NULL)
@@ -5961,18 +5965,20 @@
tbl->ent[a].masklen, tval);
}
}
+ free(tbl);
} else
errx(EX_USAGE, "invalid table command %s", *av);
}
static void
-show_nat(int ac, char **av) {
+show_nat(int ac, char **av)
+{
struct cfg_nat *n;
struct cfg_redir *e;
int cmd, i, nbytes, do_cfg, do_rule, frule, lrule, nalloc, size;
int nat_cnt, redir_cnt, r;
uint8_t *data, *p;
- char **lav, *endptr;
+ char *endptr;
do_rule = 0;
nalloc = 1024;
==== //depot/projects/mips2/src/sbin/mount_nfs/mount_nfs.c#6 (text+ko) ====
@@ -66,7 +66,7 @@
#endif /* not lint */
#endif
#include
-__FBSDID("$FreeBSD: src/sbin/mount_nfs/mount_nfs.c,v 1.79 2008/09/13 20:22:46 rodrigc Exp $");
+__FBSDID("$FreeBSD: src/sbin/mount_nfs/mount_nfs.c,v 1.80 2008/09/19 11:59:10 rodrigc Exp $");
#include
#include
@@ -164,19 +164,19 @@
enum tryret nfs4_tryproto(struct addrinfo *ai, char *hostp, char *spec,
char **errstr);
enum tryret returncode(enum clnt_stat stat, struct rpc_err *rpcerr);
+extern int getosreldate(void);
int
main(int argc, char *argv[])
{
int c;
struct iovec *iov;
- int mntflags, altflags, num;
- int iovlen;
+ int mntflags, num, iovlen;
+ int osversion;
char *name, *p, *spec, *fstype;
char mntpath[MAXPATHLEN], errmsg[255];
mntflags = 0;
- altflags = 0;
iov = NULL;
iovlen = 0;
memset(errmsg, 0, sizeof(errmsg));
@@ -403,9 +403,19 @@
build_iovec(&iov, &iovlen, "fspath", mntpath, (size_t)-1);
build_iovec(&iov, &iovlen, "errmsg", errmsg, sizeof(errmsg));
- if (nmount(iov, iovlen, mntflags)) {
- if (errno != ENOENT
- || fallback_mount(iov, iovlen, mntflags))
+ /*
+ * XXX:
+ * Backwards compatibility routines for older kernels.
+ * Remove this and fallback_mount() code when we do not need to support
+ * NFS mounts against older kernels which still need
+ * struct nfs_args to be passed in via nmount().
+ */
+ osversion = getosreldate();
+ if (osversion >= 800048) {
+ if (nmount(iov, iovlen, mntflags))
+ err(1, "%s, %s", mntpath, errmsg);
+ } else {
+ if (fallback_mount(iov, iovlen, mntflags))
err(1, "%s, %s", mntpath, errmsg);
}
==== //depot/projects/mips2/src/share/man/man5/rc.conf.5#15 (text+ko) ====
@@ -22,7 +22,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $FreeBSD: src/share/man/man5/rc.conf.5,v 1.346 2008/09/16 20:18:25 thompsa Exp $
+.\" $FreeBSD: src/share/man/man5/rc.conf.5,v 1.347 2008/09/19 15:27:37 thompsa Exp $
.\"
.Dd September 16, 2008
.Dt RC.CONF 5
@@ -3453,7 +3453,8 @@
.It Va jail_ Ns Ao Ar jname Ac Ns Va _fib
.Pq Vt str
Unset by default.
-When set, the jail is started with the specified routing table via
+When set, the jail is started with the specified forwarding table (sometimes
+referred to as a routing table) via
.Xr setfib 1 .
.It Va jail_ Ns Ao Ar jname Ac Ns Va _fstab
.Pq Vt str
==== //depot/projects/mips2/src/sys/boot/ofw/libofw/Makefile#4 (text+ko) ====
@@ -1,4 +1,4 @@
-# $FreeBSD: src/sys/boot/ofw/libofw/Makefile,v 1.11 2007/06/17 00:17:15 marius Exp $
+# $FreeBSD: src/sys/boot/ofw/libofw/Makefile,v 1.13 2008/09/19 19:49:58 sobomax Exp $
LIB= ofw
INTERNALLIB=
==== //depot/projects/mips2/src/sys/boot/ofw/libofw/ofw_console.c#4 (text+ko) ====
@@ -27,7 +27,7 @@
*/
#include
-__FBSDID("$FreeBSD: src/sys/boot/ofw/libofw/ofw_console.c,v 1.13 2008/02/06 22:04:28 grehan Exp $");
+__FBSDID("$FreeBSD: src/sys/boot/ofw/libofw/ofw_console.c,v 1.15 2008/09/19 19:49:58 sobomax Exp $");
#include
==== //depot/projects/mips2/src/sys/compat/freebsd32/freebsd32_misc.c#11 (text+ko) ====
@@ -25,7 +25,7 @@
*/
#include
-__FBSDID("$FreeBSD: src/sys/compat/freebsd32/freebsd32_misc.c,v 1.78 2008/09/15 17:39:40 obrien Exp $");
+__FBSDID("$FreeBSD: src/sys/compat/freebsd32/freebsd32_misc.c,v 1.79 2008/09/19 15:17:32 obrien Exp $");
#include "opt_compat.h"
@@ -85,6 +85,8 @@
#include
+#include
+
#include
#include
#include
@@ -2552,8 +2554,51 @@
return (cpuset_setaffinity(td, &ap));
}
+int
+freebsd32_nmount(struct thread *td,
+ struct freebsd32_nmount_args /* {
+ struct iovec *iovp;
+ unsigned int iovcnt;
+ int flags;
+ } */ *uap)
+{
+ struct uio *auio;
+ struct iovec *iov;
+ int error, k;
+
+ AUDIT_ARG(fflags, uap->flags);
+
+ /*
+ * Filter out MNT_ROOTFS. We do not want clients of nmount() in
+ * userspace to set this flag, but we must filter it out if we want
+ * MNT_UPDATE on the root file system to work.
+ * MNT_ROOTFS should only be set in the kernel in vfs_mountroot_try().
+ */
+ uap->flags &= ~MNT_ROOTFS;
+
+ /*
+ * check that we have an even number of iovec's
+ * and that we have at least two options.
+ */
+ if ((uap->iovcnt & 1) || (uap->iovcnt < 4))
+ return (EINVAL);
+
+ error = freebsd32_copyinuio(uap->iovp, uap->iovcnt, &auio);
+ if (error)
+ return (error);
+ for (iov = auio->uio_iov, k = 0; k < uap->iovcnt; ++k, ++iov) {
+ if (iov->iov_len > MMAXOPTIONLEN) {
+ free(auio, M_IOV);
+ return (EINVAL);
+ }
+ }
+
+ error = vfs_donmount(td, uap->flags, auio);
+ free(auio, M_IOV);
+ return error;
+}
+
#if 0
-
int
freebsd32_xxx(struct thread *td, struct freebsd32_xxx_args *uap)
{
@@ -2578,5 +2623,4 @@
}
return (error);
}
-
#endif
==== //depot/projects/mips2/src/sys/compat/freebsd32/freebsd32_proto.h#13 (text+ko) ====
@@ -2,8 +2,8 @@
* System call prototypes.
*
* DO NOT EDIT-- this file is automatically generated.
- * $FreeBSD: src/sys/compat/freebsd32/freebsd32_proto.h,v 1.90 2008/09/15 17:39:01 obrien Exp $
- * created from FreeBSD: head/sys/compat/freebsd32/syscalls.master 183042 2008-09-15 17:37:41Z obrien
+ * $FreeBSD: src/sys/compat/freebsd32/freebsd32_proto.h,v 1.91 2008/09/19 15:21:40 obrien Exp $
+ * created from FreeBSD: head/sys/compat/freebsd32/syscalls.master 183188 2008-09-19 15:17:32Z obrien
*/
#ifndef _FREEBSD32_SYSPROTO_H_
@@ -241,6 +241,11 @@
char nevents_l_[PADL_(int)]; int nevents; char nevents_r_[PADR_(int)];
char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)];
};
+struct freebsd32_nmount_args {
+ char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
+ char iovcnt_l_[PADL_(unsigned int)]; unsigned int iovcnt; char iovcnt_r_[PADR_(unsigned int)];
+ char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
+};
struct freebsd32_sendfile_args {
char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
@@ -413,6 +418,7 @@
int freebsd32_sigtimedwait(struct thread *, struct freebsd32_sigtimedwait_args *);
int freebsd32_sigwaitinfo(struct thread *, struct freebsd32_sigwaitinfo_args *);
int freebsd32_kevent(struct thread *, struct freebsd32_kevent_args *);
+int freebsd32_nmount(struct thread *, struct freebsd32_nmount_args *);
int freebsd32_sendfile(struct thread *, struct freebsd32_sendfile_args *);
int freebsd32_sigaction(struct thread *, struct freebsd32_sigaction_args *);
int freebsd32_sigreturn(struct thread *, struct freebsd32_sigreturn_args *);
@@ -623,6 +629,7 @@
#define FREEBSD32_SYS_AUE_freebsd32_sigtimedwait AUE_SIGWAIT
#define FREEBSD32_SYS_AUE_freebsd32_sigwaitinfo AUE_NULL
#define FREEBSD32_SYS_AUE_freebsd32_kevent AUE_NULL
+#define FREEBSD32_SYS_AUE_freebsd32_nmount AUE_NMOUNT
#define FREEBSD32_SYS_AUE_freebsd32_sendfile AUE_SENDFILE
#define FREEBSD32_SYS_AUE_freebsd32_sigaction AUE_SIGACTION
#define FREEBSD32_SYS_AUE_freebsd32_sigreturn AUE_SIGRETURN
==== //depot/projects/mips2/src/sys/compat/freebsd32/freebsd32_syscall.h#13 (text+ko) ====
@@ -2,8 +2,8 @@
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
- * $FreeBSD: src/sys/compat/freebsd32/freebsd32_syscall.h,v 1.89 2008/09/15 17:39:01 obrien Exp $
- * created from FreeBSD: head/sys/compat/freebsd32/syscalls.master 183042 2008-09-15 17:37:41Z obrien
+ * $FreeBSD: src/sys/compat/freebsd32/freebsd32_syscall.h,v 1.90 2008/09/19 15:21:40 obrien Exp $
+ * created from FreeBSD: head/sys/compat/freebsd32/syscalls.master 183188 2008-09-19 15:17:32Z obrien
*/
#define FREEBSD32_SYS_syscall 0
@@ -283,7 +283,7 @@
#define FREEBSD32_SYS_extattr_delete_fd 373
#define FREEBSD32_SYS___setugid 374
#define FREEBSD32_SYS_eaccess 376
-#define FREEBSD32_SYS_nmount 378
+#define FREEBSD32_SYS_freebsd32_nmount 378
#define FREEBSD32_SYS_kenv 390
#define FREEBSD32_SYS_lchflags 391
#define FREEBSD32_SYS_uuidgen 392
==== //depot/projects/mips2/src/sys/compat/freebsd32/freebsd32_syscalls.c#13 (text+ko) ====
@@ -2,8 +2,8 @@
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
- * $FreeBSD: src/sys/compat/freebsd32/freebsd32_syscalls.c,v 1.80 2008/09/15 17:39:01 obrien Exp $
- * created from FreeBSD: head/sys/compat/freebsd32/syscalls.master 183042 2008-09-15 17:37:41Z obrien
+ * $FreeBSD: src/sys/compat/freebsd32/freebsd32_syscalls.c,v 1.81 2008/09/19 15:21:40 obrien Exp $
+ * created from FreeBSD: head/sys/compat/freebsd32/syscalls.master 183188 2008-09-19 15:17:32Z obrien
*/
const char *freebsd32_syscallnames[] = {
@@ -385,7 +385,7 @@
"#375", /* 375 = nfsclnt */
"eaccess", /* 376 = eaccess */
"#377", /* 377 = afs_syscall */
- "nmount", /* 378 = nmount */
+ "freebsd32_nmount", /* 378 = freebsd32_nmount */
"#379", /* 379 = kse_exit */
"#380", /* 380 = kse_wakeup */
"#381", /* 381 = kse_create */
==== //depot/projects/mips2/src/sys/compat/freebsd32/freebsd32_sysent.c#13 (text+ko) ====
@@ -2,8 +2,8 @@
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
- * $FreeBSD: src/sys/compat/freebsd32/freebsd32_sysent.c,v 1.90 2008/09/15 17:39:01 obrien Exp $
- * created from FreeBSD: head/sys/compat/freebsd32/syscalls.master 183042 2008-09-15 17:37:41Z obrien
+ * $FreeBSD: src/sys/compat/freebsd32/freebsd32_sysent.c,v 1.91 2008/09/19 15:21:40 obrien Exp $
+ * created from FreeBSD: head/sys/compat/freebsd32/syscalls.master 183188 2008-09-19 15:17:32Z obrien
*/
#include "opt_compat.h"
@@ -416,7 +416,7 @@
{ 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0 }, /* 375 = nfsclnt */
{ AS(eaccess_args), (sy_call_t *)eaccess, AUE_EACCESS, NULL, 0, 0 }, /* 376 = eaccess */
{ 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0 }, /* 377 = afs_syscall */
- { AS(nmount_args), (sy_call_t *)nmount, AUE_NMOUNT, NULL, 0, 0 }, /* 378 = nmount */
+ { AS(freebsd32_nmount_args), (sy_call_t *)freebsd32_nmount, AUE_NMOUNT, NULL, 0, 0 }, /* 378 = freebsd32_nmount */
{ 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0 }, /* 379 = kse_exit */
{ 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0 }, /* 380 = kse_wakeup */
{ 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0 }, /* 381 = kse_create */
==== //depot/projects/mips2/src/sys/compat/freebsd32/syscalls.master#14 (text+ko) ====
@@ -1,4 +1,4 @@
- $FreeBSD: src/sys/compat/freebsd32/syscalls.master,v 1.105 2008/09/15 17:37:41 obrien Exp $
+ $FreeBSD: src/sys/compat/freebsd32/syscalls.master,v 1.106 2008/09/19 15:17:32 obrien Exp $
; from: @(#)syscalls.master 8.2 (Berkeley) 1/13/94
; from: src/sys/kern/syscalls.master 1.107
;
@@ -651,7 +651,7 @@
375 AUE_NULL UNIMPL nfsclnt
376 AUE_EACCESS NOPROTO { int eaccess(char *path, int flags); }
377 AUE_NULL UNIMPL afs_syscall
-378 AUE_NMOUNT NOPROTO { int nmount(struct iovec *iovp, \
+378 AUE_NMOUNT STD { int freebsd32_nmount(struct iovec32 *iovp, \
unsigned int iovcnt, int flags); }
379 AUE_NULL UNIMPL kse_exit
380 AUE_NULL UNIMPL kse_wakeup
==== //depot/projects/mips2/src/sys/conf/files.mips#25 (text+ko) ====
@@ -44,7 +44,7 @@
# Copyright (c) 2001, 2004-2005, Juniper Networks, Inc.
# All rights reserved.
# JNPR: files.mips,v 1.11 2007/08/09 12:25:35 katta
-# $FreeBSD: src/sys/conf/files.mips,v 1.2 2008/08/27 01:41:32 imp Exp $
+# $FreeBSD: src/sys/conf/files.mips,v 1.4 2008/09/19 19:46:11 imp Exp $
#
# The long compile-with and dependency lines are required because of
# limitations in config: backslash-newline doesn't work in strings, and
==== //depot/projects/mips2/src/sys/conf/files.sparc64#9 (text+ko) ====
@@ -1,7 +1,7 @@
# This file tells config what files go into building a kernel,
# files marked standard are always included.
#
-# $FreeBSD: src/sys/conf/files.sparc64,v 1.97 2008/09/10 20:22:27 marius Exp $
+# $FreeBSD: src/sys/conf/files.sparc64,v 1.99 2008/09/20 11:34:18 marius Exp $
#
# The long compile-with and dependency lines are required because of
# limitations in config: backslash-newline doesn't work in strings, and
@@ -100,20 +100,23 @@
sparc64/sparc64/db_hwwatch.c optional ddb
sparc64/sparc64/dump_machdep.c standard
sparc64/sparc64/elf_machdep.c standard
-sparc64/sparc64/exception.S standard no-obj
+sparc64/sparc64/exception.S standard no-obj \
+ compile-with "${NORMAL_S} -mcpu=ultrasparc"
sparc64/sparc64/eeprom.c optional eeprom ebus | eeprom fhc | \
eeprom sbus
sparc64/sparc64/gdb_machdep.c optional gdb
sparc64/sparc64/identcpu.c standard
sparc64/sparc64/in_cksum.c optional inet
-sparc64/sparc64/interrupt.S standard no-obj
+sparc64/sparc64/interrupt.S standard no-obj \
+ compile-with "${NORMAL_S} -mcpu=ultrasparc"
sparc64/sparc64/intr_machdep.c standard
sparc64/sparc64/iommu.c standard
sparc64/sparc64/jbusppm.c standard
sparc64/sparc64/locore.S standard no-obj
sparc64/sparc64/machdep.c standard
sparc64/sparc64/mem.c optional mem
-sparc64/sparc64/mp_exception.S optional smp
+sparc64/sparc64/mp_exception.S optional smp \
+ compile-with "${NORMAL_S} -mcpu=ultrasparc"
sparc64/sparc64/mp_locore.S optional smp
sparc64/sparc64/mp_machdep.c optional smp
sparc64/sparc64/nexus.c standard
@@ -127,7 +130,8 @@
sparc64/sparc64/schppm.c standard
sparc64/sparc64/spitfire.c standard
sparc64/sparc64/stack_machdep.c optional ddb | stack
-sparc64/sparc64/support.S standard
+sparc64/sparc64/support.S standard \
+ compile-with "${NORMAL_S} -mcpu=ultrasparc"
sparc64/sparc64/sys_machdep.c standard
sparc64/sparc64/swtch.S standard
sparc64/sparc64/tick.c standard
==== //depot/projects/mips2/src/sys/conf/options.sparc64#4 (text+ko) ====
@@ -1,4 +1,4 @@
-# $FreeBSD: src/sys/conf/options.sparc64,v 1.15 2008/08/22 20:28:19 marius Exp $
+# $FreeBSD: src/sys/conf/options.sparc64,v 1.17 2008/09/20 11:46:07 marius Exp $
GFB_DEBUG opt_gfb.h
GFB_NO_FONT_LOADING opt_gfb.h
==== //depot/projects/mips2/src/sys/dev/acpica/acpi_quirk.c#3 (text+ko) ====
@@ -25,7 +25,7 @@
*/
#include
-__FBSDID("$FreeBSD: src/sys/dev/acpica/acpi_quirk.c,v 1.4 2007/03/22 18:16:40 jkim Exp $");
+__FBSDID("$FreeBSD: src/sys/dev/acpica/acpi_quirk.c,v 1.5 2008/09/19 15:25:13 jkim Exp $");
#include
#include
@@ -149,9 +149,9 @@
if (ACPI_FAILURE(AcpiGetTableHeader(ACPI_SIG_FADT, 0, &fadt)))
bzero(&fadt, sizeof(fadt));
if (ACPI_FAILURE(AcpiGetTableHeader(ACPI_SIG_DSDT, 0, &dsdt)))
- bzero(&fadt, sizeof(dsdt));
+ bzero(&dsdt, sizeof(dsdt));
if (ACPI_FAILURE(AcpiGetTableHeader(ACPI_SIG_XSDT, 0, &xsdt)))
- bzero(&fadt, sizeof(xsdt));
+ bzero(&xsdt, sizeof(xsdt));
/* Then, override the quirks with any matched from table signatures. */
for (entry = acpi_quirks_table; entry->match; entry++) {
==== //depot/projects/mips2/src/sys/dev/ath/if_ath.c#12 (text+ko) ====
@@ -28,7 +28,7 @@
*/
#include
-__FBSDID("$FreeBSD: src/sys/dev/ath/if_ath.c,v 1.191 2008/06/07 18:38:02 sam Exp $");
+__FBSDID("$FreeBSD: src/sys/dev/ath/if_ath.c,v 1.192 2008/09/21 00:30:33 sam Exp $");
/*
* Driver for the Atheros Wireless LAN controller.
@@ -2852,7 +2852,8 @@
DPRINTF(sc, ATH_DEBUG_BEACON,
"%s: %s beacons bslot %d intval %u tsfadjust %llu\n",
__func__, sc->sc_stagbeacons ? "stagger" : "burst",
- avp->av_bslot, ni->ni_intval, le64toh(tsfadjust));
+ avp->av_bslot, ni->ni_intval,
+ (long long unsigned) le64toh(tsfadjust));
wh = mtod(m, struct ieee80211_frame *);
memcpy(&wh[1], &tsfadjust, sizeof(tsfadjust));
==== //depot/projects/mips2/src/sys/dev/ath/if_athvar.h#7 (text+ko) ====
@@ -26,7 +26,7 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGES.
*
- * $FreeBSD: src/sys/dev/ath/if_athvar.h,v 1.66 2008/09/09 16:21:25 rpaulo Exp $
+ * $FreeBSD: src/sys/dev/ath/if_athvar.h,v 1.67 2008/09/21 00:28:54 sam Exp $
*/
/*
@@ -505,8 +505,13 @@
(ath_hal_getcapability(_ah, HAL_CAP_CIPHER, _cipher, NULL) == HAL_OK)
#define ath_hal_getregdomain(_ah, _prd) \
(ath_hal_getcapability(_ah, HAL_CAP_REG_DMN, 0, (_prd)) == HAL_OK)
+#if defined(__LP64__)
#define ath_hal_setregdomain(_ah, _rd) \
+ (*(uint16_t *)(((uint8_t *)&(_ah)[1]) + 176) = (_rd))
+#else
+#define ath_hal_setregdomain(_ah, _rd) \
(*(uint16_t *)(((uint8_t *)&(_ah)[1]) + 128) = (_rd))
+#endif
#define ath_hal_getcountrycode(_ah, _pcc) \
(*(_pcc) = (_ah)->ah_countryCode)
#define ath_hal_gettkipmic(_ah) \
==== //depot/projects/mips2/src/sys/dev/cxgb/cxgb_osdep.h#10 (text+ko) ====
@@ -26,7 +26,7 @@
POSSIBILITY OF SUCH DAMAGE.
-$FreeBSD: src/sys/dev/cxgb/cxgb_osdep.h,v 1.24 2008/09/16 02:28:08 kmacy Exp $
+$FreeBSD: src/sys/dev/cxgb/cxgb_osdep.h,v 1.25 2008/09/19 21:12:19 kmacy Exp $
***************************************************************************/
@@ -92,7 +92,6 @@
#define m_get_socket(m) ((m)->m_pkthdr.header)
#define KTR_CXGB KTR_SPARE2
-void cxgb_log_tcb(struct adapter *sc, unsigned int tid);
#define MT_DONTFREE 128
==== //depot/projects/mips2/src/sys/dev/cxgb/ulp/tom/cxgb_defs.h#5 (text+ko) ====
@@ -27,7 +27,7 @@
POSSIBILITY OF SUCH DAMAGE.
-$FreeBSD: src/sys/dev/cxgb/ulp/tom/cxgb_defs.h,v 1.4 2008/04/19 03:22:42 kmacy Exp $
+$FreeBSD: src/sys/dev/cxgb/ulp/tom/cxgb_defs.h,v 1.5 2008/09/19 21:12:19 kmacy Exp $
***************************************************************************/
#ifndef CXGB_DEFS_H_
@@ -49,6 +49,7 @@
struct toepcb;
struct listen_ctx;
+void cxgb_log_tcb(struct adapter *sc, unsigned int tid);
typedef void (*defer_handler_t)(struct toedev *dev, struct mbuf *m);
void t3tom_register_cpl_handler(unsigned int opcode, cxgb_cpl_handler_func h);
==== //depot/projects/mips2/src/sys/dev/cxgb/ulp/tom/cxgb_tom.c#6 (text+ko) ====
@@ -28,7 +28,7 @@
***************************************************************************/
#include
-__FBSDID("$FreeBSD: src/sys/dev/cxgb/ulp/tom/cxgb_tom.c,v 1.8 2008/09/16 01:02:17 kmacy Exp $");
+__FBSDID("$FreeBSD: src/sys/dev/cxgb/ulp/tom/cxgb_tom.c,v 1.9 2008/09/19 21:12:19 kmacy Exp $");
#include
#include
@@ -145,6 +145,35 @@
.redirect = NULL
};
+void
+cxgb_log_tcb(struct adapter *sc, unsigned int tid)
+{
+
+ char buf[TCB_SIZE];
+ uint64_t *tcb = (uint64_t *)buf;
+ int i, error;
+ struct mc7 *mem = &sc->cm;
+
+ error = t3_mc7_bd_read(mem, tid*TCB_SIZE/8, TCB_SIZE/8, tcb);
+ if (error)
+ printf("cxgb_tcb_log failed\n");
+
+
+ CTR1(KTR_CXGB, "TCB tid=%u", tid);
+ for (i = 0; i < TCB_SIZE / 32; i++) {
+
+ CTR5(KTR_CXGB, "%1d: %08x %08x %08x %08x",
+ i, (uint32_t)tcb[1], (uint32_t)(tcb[1] >> 32),
+ (uint32_t)tcb[0], (uint32_t)(tcb[0] >> 32));
+
+ tcb += 2;
+ CTR4(KTR_CXGB, " %08x %08x %08x %08x",
+ (uint32_t)tcb[1], (uint32_t)(tcb[1] >> 32),
+ (uint32_t)tcb[0], (uint32_t)(tcb[0] >> 32));
+ tcb += 2;
+ }
+}
+
/*
* Add an skb to the deferred skb queue for processing from process context.
*/
==== //depot/projects/mips2/src/sys/dev/pci/vga_pci.c#3 (text+ko) ====
@@ -28,7 +28,7 @@
*/
#include
-__FBSDID("$FreeBSD: src/sys/dev/pci/vga_pci.c,v 1.6 2008/09/16 19:52:02 jhb Exp $");
+__FBSDID("$FreeBSD: src/sys/dev/pci/vga_pci.c,v 1.7 2008/09/19 19:11:35 rnoland Exp $");
/*
* Simple driver for PCI VGA display devices. Drivers such as agp(4) and
@@ -110,6 +110,22 @@
return (EINVAL);
}
+static int
+vga_pci_setup_intr(device_t dev, device_t child, struct resource *irq,
+ int flags, driver_filter_t *filter, driver_intr_t *intr, void *arg,
+ void **cookiep)
+{
+ return (BUS_SETUP_INTR(device_get_parent(dev), dev, irq, flags,
+ filter, intr, arg, cookiep));
+}
+
+static int
+vga_pci_teardown_intr(device_t dev, device_t child, struct resource *irq,
+ void *cookie)
+{
+ return (BUS_TEARDOWN_INTR(device_get_parent(dev), dev, irq, cookie));
+}
+
static struct resource *
vga_pci_alloc_resource(device_t dev, device_t child, int type, int *rid,
u_long start, u_long end, u_long count, u_int flags)
@@ -311,8 +327,8 @@
/* Bus interface */
DEVMETHOD(bus_read_ivar, vga_pci_read_ivar),
DEVMETHOD(bus_write_ivar, vga_pci_write_ivar),
- DEVMETHOD(bus_setup_intr, bus_generic_setup_intr),
- DEVMETHOD(bus_teardown_intr, bus_generic_teardown_intr),
+ DEVMETHOD(bus_setup_intr, vga_pci_setup_intr),
+ DEVMETHOD(bus_teardown_intr, vga_pci_teardown_intr),
DEVMETHOD(bus_alloc_resource, vga_pci_alloc_resource),
DEVMETHOD(bus_release_resource, vga_pci_release_resource),
==== //depot/projects/mips2/src/sys/dev/snp/snp.c#8 (text+ko) ====
@@ -15,7 +15,7 @@
*/
#include
-__FBSDID("$FreeBSD: src/sys/dev/snp/snp.c,v 1.109 2008/08/15 13:07:07 ed Exp $");
+__FBSDID("$FreeBSD: src/sys/dev/snp/snp.c,v 1.110 2008/09/19 10:21:30 ed Exp $");
#include
#include
@@ -43,7 +43,7 @@
static struct cdevsw snp_cdevsw = {
.d_version = D_VERSION,
- .d_flags = D_PSEUDO | D_NEEDGIANT | D_NEEDMINOR,
+ .d_flags = D_PSEUDO | D_NEEDGIANT,
.d_open = snpopen,
.d_read = snpread,
.d_write = snpwrite,
==== //depot/projects/mips2/src/sys/dev/usb/if_zyd.c#10 (text+ko) ====
@@ -1,6 +1,6 @@
/* $OpenBSD: if_zyd.c,v 1.52 2007/02/11 00:08:04 jsg Exp $ */
/* $NetBSD: if_zyd.c,v 1.7 2007/06/21 04:04:29 kiyohara Exp $ */
-/* $FreeBSD: src/sys/dev/usb/if_zyd.c,v 1.20 2008/09/10 03:40:51 weongyo Exp $ */
+/* $FreeBSD: src/sys/dev/usb/if_zyd.c,v 1.22 2008/09/19 07:40:30 weongyo Exp $ */
/*-
* Copyright (c) 2006 by Damien Bergamini
@@ -234,6 +234,7 @@
static void zyd_scan_start(struct ieee80211com *);
static void zyd_scan_end(struct ieee80211com *);
static void zyd_set_channel(struct ieee80211com *);
+static void zyd_wakeup(struct zyd_softc *);
static int
zyd_match(device_t dev)
@@ -451,9 +452,6 @@
if (!device_is_attached(dev))
return 0;
- /* set a flag to indicate we're detaching. */
- sc->sc_flags |= ZYD_FLAG_DETACHING;
-
/* protect a race when we have listeners related with the driver. */
ifp->if_flags &= ~IFF_UP;
@@ -461,10 +459,14 @@
bpfdetach(ifp);
ieee80211_ifdetach(ic);
+ /* set a flag to indicate we're detaching. */
+ sc->sc_flags |= ZYD_FLAG_DETACHING;
+
usb_rem_task(sc->sc_udev, &sc->sc_scantask);
usb_rem_task(sc->sc_udev, &sc->sc_task);
callout_stop(&sc->sc_watchdog_ch);
+ zyd_wakeup(sc);
zyd_close_pipes(sc);
if_free(ifp);
@@ -763,7 +765,9 @@
struct ieee80211com *ic = vap->iv_ic;
struct zyd_softc *sc = ic->ic_ifp->if_softc;
+ usb_rem_task(sc->sc_udev, &sc->sc_scantask);
usb_rem_task(sc->sc_udev, &sc->sc_task);
+ callout_stop(&sc->sc_watchdog_ch);
/* do it in a process context */
sc->sc_state = nstate;
@@ -788,6 +792,9 @@
uint16_t xferflags;
usbd_status error;
+ if (sc->sc_flags & ZYD_FLAG_DETACHING)
+ return ENXIO;
+
if ((xfer = usbd_alloc_xfer(sc->sc_udev)) == NULL)
return ENOMEM;
@@ -2746,9 +2753,6 @@
struct ifnet *ifp = sc->sc_ifp;
struct ieee80211com *ic = ifp->if_l2com;
- if (sc->sc_flags & ZYD_FLAG_DETACHING)
- return;
-
ZYD_LOCK(sc);
switch (sc->sc_scan_action) {
@@ -2777,6 +2781,16 @@
ZYD_UNLOCK(sc);
}
+static void
+zyd_wakeup(struct zyd_softc *sc)
+{
+ struct rq *rqp;
+
+ STAILQ_FOREACH(rqp, &sc->sc_rqh, rq) {
+ wakeup(rqp->odata); /* wakeup sleeping caller */
+ }
+}
+
static device_method_t zyd_methods[] = {
/* Device interface */
DEVMETHOD(device_probe, zyd_match),
==== //depot/projects/mips2/src/sys/dev/usb/usbdevs#24 (text+ko) ====
@@ -1,4 +1,4 @@
-$FreeBSD: src/sys/dev/usb/usbdevs,v 1.371 2008/09/14 15:21:22 thompsa Exp $
+$FreeBSD: src/sys/dev/usb/usbdevs,v 1.372 2008/09/19 09:04:06 kevlo Exp $
/* $NetBSD: usbdevs,v 1.392 2004/12/29 08:38:44 imp Exp $ */
/*-
@@ -282,6 +282,7 @@
vendor APPLE 0x05ac Apple Computer
vendor YCCABLE 0x05ad Y.C. Cable
vendor DIGITALPERSONA 0x05ba DigitalPersona
+vendor 3G 0x05bc 3G Green Green Globe
vendor RAFI 0x05bd RAFI
vendor TYCO 0x05be Tyco
vendor KAWASAKI 0x05c1 Kawasaki
==== //depot/projects/mips2/src/sys/fs/devfs/devfs_vnops.c#13 (text+ko) ====
@@ -31,7 +31,7 @@
* @(#)kernfs_vnops.c 8.15 (Berkeley) 5/21/95
* From: FreeBSD: src/sys/miscfs/kernfs/kernfs_vnops.c 1.43
*
- * $FreeBSD: src/sys/fs/devfs/devfs_vnops.c,v 1.166 2008/08/28 15:23:18 attilio Exp $
+ * $FreeBSD: src/sys/fs/devfs/devfs_vnops.c,v 1.167 2008/09/20 19:50:52 kib Exp $
*/
/*
@@ -499,8 +499,6 @@
KASSERT(de != NULL,
("Null dir dirent in devfs_getattr vp=%p", vp));
}
- bzero((caddr_t) vap, sizeof(*vap));
- vattr_null(vap);
vap->va_uid = de->de_uid;
vap->va_gid = de->de_gid;
vap->va_mode = de->de_mode;
@@ -543,6 +541,7 @@
}
vap->va_gen = 0;
vap->va_flags = 0;
+ vap->va_filerev = 0;
vap->va_nlink = de->de_links;
vap->va_fileid = de->de_inode;
==== //depot/projects/mips2/src/sys/fs/fdescfs/fdesc_vnops.c#9 (text+ko) ====
@@ -31,7 +31,7 @@
*
* @(#)fdesc_vnops.c 8.9 (Berkeley) 1/21/94
*
- * $FreeBSD: src/sys/fs/fdescfs/fdesc_vnops.c,v 1.110 2008/08/28 15:23:18 attilio Exp $
+ * $FreeBSD: src/sys/fs/fdescfs/fdesc_vnops.c,v 1.112 2008/09/20 19:50:52 kib Exp $
*/
/*
@@ -391,8 +391,6 @@
switch (VTOFDESC(vp)->fd_type) {
>>> TRUNCATED FOR MAIL (1000 lines) <<<
From owner-p4-projects@FreeBSD.ORG Sun Sep 21 06:24:22 2008
Return-Path:
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id 3682F1065678; Sun, 21 Sep 2008 06:24:22 +0000 (UTC)
Delivered-To: perforce@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
by hub.freebsd.org (Postfix) with ESMTP id EEAA51065675
for ; Sun, 21 Sep 2008 06:24:21 +0000 (UTC)
(envelope-from thompsa@freebsd.org)
Received: from repoman.freebsd.org (repoman.freebsd.org
[IPv6:2001:4f8:fff6::29])
by mx1.freebsd.org (Postfix) with ESMTP id DB0C98FC3A
for ; Sun, 21 Sep 2008 06:24:21 +0000 (UTC)
(envelope-from thompsa@freebsd.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id m8L6OL3I009964
for ; Sun, 21 Sep 2008 06:24:21 GMT
(envelope-from thompsa@freebsd.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.14.3/8.14.3/Submit) id m8L6OLBY009942
for perforce@freebsd.org; Sun, 21 Sep 2008 06:24:21 GMT
(envelope-from thompsa@freebsd.org)
Date: Sun, 21 Sep 2008 06:24:21 GMT
Message-Id: <200809210624.m8L6OLBY009942@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
thompsa@freebsd.org using -f
From: Andrew Thompson
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 150191 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Sun, 21 Sep 2008 06:24:22 -0000
http://perforce.freebsd.org/chv.cgi?CH=150191
Change 150191 by thompsa@thompsa_burger on 2008/09/21 06:23:27
Re-run the sed script to remove the parenthesis from &(var) as it only
converts the first match on the line.
Affected files ...
.. //depot/projects/usb/src/sys/dev/usb2/controller/ehci2.c#14 edit
.. //depot/projects/usb/src/sys/dev/usb2/controller/ehci2_pci.c#11 edit
.. //depot/projects/usb/src/sys/dev/usb2/controller/ohci2.c#13 edit
.. //depot/projects/usb/src/sys/dev/usb2/controller/ohci2_pci.c#9 edit
.. //depot/projects/usb/src/sys/dev/usb2/controller/uhci2.c#11 edit
.. //depot/projects/usb/src/sys/dev/usb2/controller/uhci2_pci.c#10 edit
.. //depot/projects/usb/src/sys/dev/usb2/controller/usb2_controller.c#12 edit
.. //depot/projects/usb/src/sys/dev/usb2/core/usb2_hub.c#17 edit
.. //depot/projects/usb/src/sys/dev/usb2/core/usb2_msctest.c#7 edit
.. //depot/projects/usb/src/sys/dev/usb2/core/usb2_transfer.c#27 edit
.. //depot/projects/usb/src/sys/dev/usb2/ethernet/if_aue2.c#9 edit
.. //depot/projects/usb/src/sys/dev/usb2/ethernet/if_axe2.c#9 edit
.. //depot/projects/usb/src/sys/dev/usb2/ethernet/if_cue2.c#9 edit
.. //depot/projects/usb/src/sys/dev/usb2/ethernet/if_kue2.c#9 edit
.. //depot/projects/usb/src/sys/dev/usb2/ethernet/if_rue2.c#9 edit
.. //depot/projects/usb/src/sys/dev/usb2/ethernet/if_udav2.c#9 edit
.. //depot/projects/usb/src/sys/dev/usb2/input/ukbd2.c#8 edit
.. //depot/projects/usb/src/sys/dev/usb2/serial/uark2.c#6 edit
.. //depot/projects/usb/src/sys/dev/usb2/serial/ubsa2.c#8 edit
.. //depot/projects/usb/src/sys/dev/usb2/serial/uchcom2.c#7 edit
.. //depot/projects/usb/src/sys/dev/usb2/serial/ucycom2.c#7 edit
.. //depot/projects/usb/src/sys/dev/usb2/serial/ufoma2.c#8 edit
.. //depot/projects/usb/src/sys/dev/usb2/serial/uftdi2.c#7 edit
.. //depot/projects/usb/src/sys/dev/usb2/serial/uipaq2.c#8 edit
.. //depot/projects/usb/src/sys/dev/usb2/serial/umct2.c#6 edit
.. //depot/projects/usb/src/sys/dev/usb2/serial/umodem2.c#8 edit
.. //depot/projects/usb/src/sys/dev/usb2/serial/umoscom2.c#7 edit
.. //depot/projects/usb/src/sys/dev/usb2/serial/uplcom2.c#8 edit
.. //depot/projects/usb/src/sys/dev/usb2/serial/uvisor2.c#7 edit
.. //depot/projects/usb/src/sys/dev/usb2/serial/uvscom2.c#7 edit
.. //depot/projects/usb/src/sys/dev/usb2/sound/uaudio2.c#13 edit
.. //depot/projects/usb/src/sys/dev/usb2/wlan/if_rum2.c#15 edit
.. //depot/projects/usb/src/sys/dev/usb2/wlan/if_ural2.c#15 edit
.. //depot/projects/usb/src/sys/dev/usb2/wlan/if_zyd2.c#16 edit
Differences ...
==== //depot/projects/usb/src/sys/dev/usb2/controller/ehci2.c#14 (text+ko) ====
@@ -126,10 +126,10 @@
struct ehci_softc *sc = EHCI_BUS2SC(bus);
uint32_t i;
- cb(bus, &sc->sc_hw.pframes_pc, &(sc->sc_hw.pframes_pg),
+ cb(bus, &sc->sc_hw.pframes_pc, &sc->sc_hw.pframes_pg,
sizeof(uint32_t) * EHCI_FRAMELIST_COUNT, EHCI_FRAMELIST_ALIGN);
- cb(bus, &sc->sc_hw.async_start_pc, &(sc->sc_hw.async_start_pg),
+ cb(bus, &sc->sc_hw.async_start_pc, &sc->sc_hw.async_start_pg,
sizeof(ehci_qh_t), EHCI_QH_ALIGN);
for (i = 0; i != EHCI_VIRTUAL_FRAMELIST_COUNT; i++) {
==== //depot/projects/usb/src/sys/dev/usb2/controller/ehci2_pci.c#11 (text+ko) ====
@@ -337,7 +337,7 @@
sprintf(sc->sc_vendor, "(0x%04x)", pci_get_vendor(self));
}
- err = usb2_config_td_setup(&sc->sc_config_td, sc, &(sc->sc_bus.mtx),
+ err = usb2_config_td_setup(&sc->sc_config_td, sc, &sc->sc_bus.mtx,
NULL, 0, 4);
if (err) {
device_printf(self, "could not setup config thread!\n");
==== //depot/projects/usb/src/sys/dev/usb2/controller/ohci2.c#13 (text+ko) ====
@@ -135,16 +135,16 @@
struct ohci_softc *sc = OHCI_BUS2SC(bus);
uint32_t i;
- cb(bus, &sc->sc_hw.hcca_pc, &(sc->sc_hw.hcca_pg),
+ cb(bus, &sc->sc_hw.hcca_pc, &sc->sc_hw.hcca_pg,
sizeof(ohci_hcca_t), OHCI_HCCA_ALIGN);
- cb(bus, &sc->sc_hw.ctrl_start_pc, &(sc->sc_hw.ctrl_start_pg),
+ cb(bus, &sc->sc_hw.ctrl_start_pc, &sc->sc_hw.ctrl_start_pg,
sizeof(ohci_ed_t), OHCI_ED_ALIGN);
- cb(bus, &sc->sc_hw.bulk_start_pc, &(sc->sc_hw.bulk_start_pg),
+ cb(bus, &sc->sc_hw.bulk_start_pc, &sc->sc_hw.bulk_start_pg,
sizeof(ohci_ed_t), OHCI_ED_ALIGN);
- cb(bus, &sc->sc_hw.isoc_start_pc, &(sc->sc_hw.isoc_start_pg),
+ cb(bus, &sc->sc_hw.isoc_start_pc, &sc->sc_hw.isoc_start_pg,
sizeof(ohci_ed_t), OHCI_ED_ALIGN);
for (i = 0; i != OHCI_NO_EDS; i++) {
==== //depot/projects/usb/src/sys/dev/usb2/controller/ohci2_pci.c#9 (text+ko) ====
@@ -280,7 +280,7 @@
sprintf(sc->sc_vendor, "(0x%04x)", pci_get_vendor(self));
}
- err = usb2_config_td_setup(&sc->sc_config_td, sc, &(sc->sc_bus.mtx),
+ err = usb2_config_td_setup(&sc->sc_config_td, sc, &sc->sc_bus.mtx,
NULL, 0, 4);
if (err) {
device_printf(self, "could not setup config thread!\n");
==== //depot/projects/usb/src/sys/dev/usb2/controller/uhci2.c#11 (text+ko) ====
@@ -153,22 +153,22 @@
struct uhci_softc *sc = UHCI_BUS2SC(bus);
uint32_t i;
- cb(bus, &sc->sc_hw.pframes_pc, &(sc->sc_hw.pframes_pg),
+ cb(bus, &sc->sc_hw.pframes_pc, &sc->sc_hw.pframes_pg,
sizeof(uint32_t) * UHCI_FRAMELIST_COUNT, UHCI_FRAMELIST_ALIGN);
- cb(bus, &sc->sc_hw.ls_ctl_start_pc, &(sc->sc_hw.ls_ctl_start_pg),
+ cb(bus, &sc->sc_hw.ls_ctl_start_pc, &sc->sc_hw.ls_ctl_start_pg,
sizeof(uhci_qh_t), UHCI_QH_ALIGN);
- cb(bus, &sc->sc_hw.fs_ctl_start_pc, &(sc->sc_hw.fs_ctl_start_pg),
+ cb(bus, &sc->sc_hw.fs_ctl_start_pc, &sc->sc_hw.fs_ctl_start_pg,
sizeof(uhci_qh_t), UHCI_QH_ALIGN);
- cb(bus, &sc->sc_hw.bulk_start_pc, &(sc->sc_hw.bulk_start_pg),
+ cb(bus, &sc->sc_hw.bulk_start_pc, &sc->sc_hw.bulk_start_pg,
sizeof(uhci_qh_t), UHCI_QH_ALIGN);
- cb(bus, &sc->sc_hw.last_qh_pc, &(sc->sc_hw.last_qh_pg),
+ cb(bus, &sc->sc_hw.last_qh_pc, &sc->sc_hw.last_qh_pg,
sizeof(uhci_qh_t), UHCI_QH_ALIGN);
- cb(bus, &sc->sc_hw.last_td_pc, &(sc->sc_hw.last_td_pg),
+ cb(bus, &sc->sc_hw.last_td_pc, &sc->sc_hw.last_td_pg,
sizeof(uhci_td_t), UHCI_TD_ALIGN);
for (i = 0; i != UHCI_VFRAMELIST_COUNT; i++) {
==== //depot/projects/usb/src/sys/dev/usb2/controller/uhci2_pci.c#10 (text+ko) ====
@@ -321,7 +321,7 @@
break;
}
- err = usb2_config_td_setup(&sc->sc_config_td, sc, &(sc->sc_bus.mtx),
+ err = usb2_config_td_setup(&sc->sc_config_td, sc, &sc->sc_bus.mtx,
NULL, 0, 4);
if (err) {
device_printf(self, "could not setup config thread!\n");
==== //depot/projects/usb/src/sys/dev/usb2/controller/usb2_controller.c#12 (text+ko) ====
@@ -146,7 +146,7 @@
mtx_lock(&bus->mtx);
if (usb2_proc_msignal(&bus->explore_proc,
- &bus->detach_msg[0], &(bus->detach_msg[1]))) {
+ &bus->detach_msg[0], &bus->detach_msg[1])) {
/* ignore */
}
mtx_unlock(&bus->mtx);
@@ -154,7 +154,7 @@
/* Wait for detach to complete */
usb2_proc_mwait(&bus->explore_proc,
- &bus->detach_msg[0], &(bus->detach_msg[1]));
+ &bus->detach_msg[0], &bus->detach_msg[1]);
/* Get rid of USB explore process */
==== //depot/projects/usb/src/sys/dev/usb2/core/usb2_hub.c#17 (text+ko) ====
@@ -1284,7 +1284,7 @@
bus->do_probe = 1;
}
if (usb2_proc_msignal(&bus->explore_proc,
- &bus->explore_msg[0], &(bus->explore_msg[1]))) {
+ &bus->explore_msg[0], &bus->explore_msg[1])) {
/* ignore */
}
mtx_unlock(&bus->mtx);
==== //depot/projects/usb/src/sys/dev/usb2/core/usb2_msctest.c#7 (text+ko) ====
@@ -461,7 +461,7 @@
usb2_transfer_start(sc->xfer[sc->state]);
while (usb2_transfer_pending(sc->xfer[sc->state])) {
- usb2_cv_wait(&sc->cv, &(sc->mtx));
+ usb2_cv_wait(&sc->cv, &sc->mtx);
}
return (sc->error);
}
==== //depot/projects/usb/src/sys/dev/usb2/core/usb2_transfer.c#27 (text+ko) ====
@@ -1751,7 +1751,7 @@
* proceed !
*/
if (usb2_proc_msignal(&info->done_p,
- &info->done_m[0], &(info->done_m[1]))) {
+ &info->done_m[0], &info->done_m[1])) {
/* ignore */
}
} else {
@@ -1793,7 +1793,7 @@
* proceed !
*/
if (usb2_proc_msignal(&info->done_p,
- &info->done_m[0], &(info->done_m[1]))) {
+ &info->done_m[0], &info->done_m[1])) {
/* ignore */
}
return;
@@ -2142,7 +2142,7 @@
} else if (udev->default_xfer[1]) {
info = udev->default_xfer[1]->usb2_root;
if (usb2_proc_msignal(&info->done_p,
- &udev->cs_msg[0], &(udev->cs_msg[1]))) {
+ &udev->cs_msg[0], &udev->cs_msg[1])) {
/* ignore */
}
} else {
==== //depot/projects/usb/src/sys/dev/usb2/ethernet/if_aue2.c#9 (text+ko) ====
@@ -780,7 +780,7 @@
"transfers failed!\n");
goto detach;
}
- error = usb2_config_td_setup(&sc->sc_config_td, sc, &(sc->sc_mtx),
+ error = usb2_config_td_setup(&sc->sc_config_td, sc, &sc->sc_mtx,
NULL, sizeof(struct usb2_config_td_cc), 16);
if (error) {
device_printf(dev, "could not setup config "
==== //depot/projects/usb/src/sys/dev/usb2/ethernet/if_axe2.c#9 (text+ko) ====
@@ -620,7 +620,7 @@
"transfers failed!\n");
goto detach;
}
- error = usb2_config_td_setup(&sc->sc_config_td, sc, &(sc->sc_mtx),
+ error = usb2_config_td_setup(&sc->sc_config_td, sc, &sc->sc_mtx,
NULL, sizeof(struct usb2_config_td_cc), 16);
if (error) {
device_printf(dev, "could not setup config "
==== //depot/projects/usb/src/sys/dev/usb2/ethernet/if_cue2.c#9 (text+ko) ====
@@ -424,7 +424,7 @@
"transfers failed!\n");
goto detach;
}
- error = usb2_config_td_setup(&sc->sc_config_td, sc, &(sc->sc_mtx),
+ error = usb2_config_td_setup(&sc->sc_config_td, sc, &sc->sc_mtx,
NULL, sizeof(struct usb2_config_td_cc), 16);
if (error) {
device_printf(dev, "could not setup config "
==== //depot/projects/usb/src/sys/dev/usb2/ethernet/if_kue2.c#9 (text+ko) ====
@@ -488,7 +488,7 @@
"transfers failed!\n");
goto detach;
}
- error = usb2_config_td_setup(&sc->sc_config_td, sc, &(sc->sc_mtx),
+ error = usb2_config_td_setup(&sc->sc_config_td, sc, &sc->sc_mtx,
NULL, sizeof(struct usb2_config_td_cc), 16);
if (error) {
device_printf(dev, "could not setup config "
==== //depot/projects/usb/src/sys/dev/usb2/ethernet/if_rue2.c#9 (text+ko) ====
@@ -673,7 +673,7 @@
"transfers failed!\n");
goto detach;
}
- error = usb2_config_td_setup(&sc->sc_config_td, sc, &(sc->sc_mtx),
+ error = usb2_config_td_setup(&sc->sc_config_td, sc, &sc->sc_mtx,
NULL, sizeof(struct usb2_config_td_cc), 16);
if (error) {
device_printf(dev, "could not setup config "
==== //depot/projects/usb/src/sys/dev/usb2/ethernet/if_udav2.c#9 (text+ko) ====
@@ -289,7 +289,7 @@
"transfers failed!\n");
goto detach;
}
- error = usb2_config_td_setup(&sc->sc_config_td, sc, &(sc->sc_mtx),
+ error = usb2_config_td_setup(&sc->sc_config_td, sc, &sc->sc_mtx,
NULL, sizeof(struct usb2_config_td_cc), 16);
if (error) {
device_printf(dev, "could not setup config "
==== //depot/projects/usb/src/sys/dev/usb2/input/ukbd2.c#8 (text+ko) ====
@@ -666,7 +666,7 @@
sc->sc_fkeymap[n] = fkey_tab[n];
}
- kbd_set_maps(kbd, &sc->sc_keymap, &(sc->sc_accmap),
+ kbd_set_maps(kbd, &sc->sc_keymap, &sc->sc_accmap,
sc->sc_fkeymap, UKBD_NFKEY);
KBD_FOUND_DEVICE(kbd);
==== //depot/projects/usb/src/sys/dev/usb2/serial/uark2.c#6 (text+ko) ====
@@ -225,7 +225,7 @@
sc->sc_flags |= (UARK_FLAG_BULK_WRITE_STALL |
UARK_FLAG_BULK_READ_STALL);
- error = usb2_com_attach(&sc->sc_super_ucom, &(sc->sc_ucom), 1, sc,
+ error = usb2_com_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc,
&uark_callback, &Giant);
if (error) {
DPRINTF("usb2_com_attach failed\n");
@@ -243,7 +243,7 @@
{
struct uark_softc *sc = device_get_softc(dev);
- usb2_com_detach(&sc->sc_super_ucom, &(sc->sc_ucom), 1);
+ usb2_com_detach(&sc->sc_super_ucom, &sc->sc_ucom, 1);
usb2_transfer_unsetup(sc->sc_xfer, UARK_N_TRANSFER);
==== //depot/projects/usb/src/sys/dev/usb2/serial/ubsa2.c#8 (text+ko) ====
@@ -362,7 +362,7 @@
sc->sc_flag |= (UBSA_FLAG_WRITE_STALL |
UBSA_FLAG_READ_STALL);
- error = usb2_com_attach(&sc->sc_super_ucom, &(sc->sc_ucom), 1, sc,
+ error = usb2_com_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc,
&ubsa_callback, &Giant);
if (error) {
DPRINTF("usb2_com_attach failed\n");
@@ -382,7 +382,7 @@
DPRINTF("sc=%p\n", sc);
- usb2_com_detach(&sc->sc_super_ucom, &(sc->sc_ucom), 1);
+ usb2_com_detach(&sc->sc_super_ucom, &sc->sc_ucom, 1);
usb2_transfer_unsetup(sc->sc_xfer, UBSA_N_TRANSFER);
==== //depot/projects/usb/src/sys/dev/usb2/serial/uchcom2.c#7 (text+ko) ====
@@ -378,7 +378,7 @@
sc->sc_flag |= (UCHCOM_FLAG_READ_STALL |
UCHCOM_FLAG_WRITE_STALL);
- error = usb2_com_attach(&sc->sc_super_ucom, &(sc->sc_ucom), 1, sc,
+ error = usb2_com_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc,
&uchcom_callback, &Giant);
if (error) {
goto detach;
@@ -397,7 +397,7 @@
DPRINTFN(11, "\n");
- usb2_com_detach(&sc->sc_super_ucom, &(sc->sc_ucom), 1);
+ usb2_com_detach(&sc->sc_super_ucom, &sc->sc_ucom, 1);
usb2_transfer_unsetup(sc->sc_xfer, UCHCOM_N_TRANSFER);
==== //depot/projects/usb/src/sys/dev/usb2/serial/ucycom2.c#7 (text+ko) ====
@@ -269,7 +269,7 @@
"transfers failed!\n");
goto detach;
}
- error = usb2_com_attach(&sc->sc_super_ucom, &(sc->sc_ucom), 1, sc,
+ error = usb2_com_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc,
&ucycom_callback, &Giant);
if (error) {
@@ -293,7 +293,7 @@
{
struct ucycom_softc *sc = device_get_softc(dev);
- usb2_com_detach(&sc->sc_super_ucom, &(sc->sc_ucom), 1);
+ usb2_com_detach(&sc->sc_super_ucom, &sc->sc_ucom, 1);
usb2_transfer_unsetup(sc->sc_xfer, UCYCOM_ENDPT_MAX);
==== //depot/projects/usb/src/sys/dev/usb2/serial/ufoma2.c#8 (text+ko) ====
@@ -449,7 +449,7 @@
sc->sc_flags |= (UFOMA_FLAG_BULK_WRITE_STALL |
UFOMA_FLAG_BULK_READ_STALL);
- error = usb2_com_attach(&sc->sc_super_ucom, &(sc->sc_ucom), 1, sc,
+ error = usb2_com_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc,
&ufoma_callback, &Giant);
if (error) {
DPRINTF("usb2_com_attach failed\n");
@@ -467,7 +467,7 @@
{
struct ufoma_softc *sc = device_get_softc(dev);
- usb2_com_detach(&sc->sc_super_ucom, &(sc->sc_ucom), 1);
+ usb2_com_detach(&sc->sc_super_ucom, &sc->sc_ucom, 1);
usb2_transfer_unsetup(sc->sc_ctrl_xfer, UFOMA_CTRL_ENDPT_MAX);
==== //depot/projects/usb/src/sys/dev/usb2/serial/uftdi2.c#7 (text+ko) ====
@@ -326,7 +326,7 @@
FTDI_SIO_SET_DATA_PARITY_NONE |
FTDI_SIO_SET_DATA_BITS(8));
- error = usb2_com_attach(&sc->sc_super_ucom, &(sc->sc_ucom), 1, sc,
+ error = usb2_com_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc,
&uftdi_callback, &Giant);
if (error) {
goto detach;
@@ -343,7 +343,7 @@
{
struct uftdi_softc *sc = device_get_softc(dev);
- usb2_com_detach(&sc->sc_super_ucom, &(sc->sc_ucom), 1);
+ usb2_com_detach(&sc->sc_super_ucom, &sc->sc_ucom, 1);
usb2_transfer_unsetup(sc->sc_xfer, UFTDI_ENDPT_MAX);
==== //depot/projects/usb/src/sys/dev/usb2/serial/uipaq2.c#8 (text+ko) ====
@@ -1160,7 +1160,7 @@
sc->sc_flag |= (UIPAQ_FLAG_READ_STALL |
UIPAQ_FLAG_WRITE_STALL);
- error = usb2_com_attach(&sc->sc_super_ucom, &(sc->sc_ucom), 1, sc,
+ error = usb2_com_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc,
&uipaq_callback, &Giant);
if (error) {
goto detach;
@@ -1177,7 +1177,7 @@
{
struct uipaq_softc *sc = device_get_softc(dev);
- usb2_com_detach(&sc->sc_super_ucom, &(sc->sc_ucom), 1);
+ usb2_com_detach(&sc->sc_super_ucom, &sc->sc_ucom, 1);
usb2_transfer_unsetup(sc->sc_xfer_data, UIPAQ_N_DATA_TRANSFER);
==== //depot/projects/usb/src/sys/dev/usb2/serial/umct2.c#6 (text+ko) ====
@@ -311,7 +311,7 @@
sc->sc_obufsize = 16;
}
}
- error = usb2_com_attach(&sc->sc_super_ucom, &(sc->sc_ucom), 1, sc,
+ error = usb2_com_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc,
&umct_callback, &Giant);
if (error) {
goto detach;
@@ -328,7 +328,7 @@
{
struct umct_softc *sc = device_get_softc(dev);
- usb2_com_detach(&sc->sc_super_ucom, &(sc->sc_ucom), 1);
+ usb2_com_detach(&sc->sc_super_ucom, &sc->sc_ucom, 1);
usb2_transfer_unsetup(sc->sc_xfer, UMCT_ENDPT_MAX);
==== //depot/projects/usb/src/sys/dev/usb2/serial/umodem2.c#8 (text+ko) ====
@@ -396,7 +396,7 @@
sc->sc_flag |= (UMODEM_FLAG_READ_STALL |
UMODEM_FLAG_WRITE_STALL);
- error = usb2_com_attach(&sc->sc_super_ucom, &(sc->sc_ucom), 1, sc,
+ error = usb2_com_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc,
&umodem_callback, &Giant);
if (error) {
goto detach;
@@ -881,7 +881,7 @@
DPRINTF("sc=%p\n", sc);
- usb2_com_detach(&sc->sc_super_ucom, &(sc->sc_ucom), 1);
+ usb2_com_detach(&sc->sc_super_ucom, &sc->sc_ucom, 1);
usb2_transfer_unsetup(sc->sc_xfer_intr, UMODEM_N_INTR_TRANSFER);
==== //depot/projects/usb/src/sys/dev/usb2/serial/umoscom2.c#7 (text+ko) ====
@@ -348,7 +348,7 @@
sc->sc_flags |= (UMOSCOM_FLAG_READ_STALL |
UMOSCOM_FLAG_WRITE_STALL);
- error = usb2_com_attach(&sc->sc_super_ucom, &(sc->sc_ucom), 1, sc,
+ error = usb2_com_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc,
&umoscom_callback, &Giant);
if (error) {
goto detach;
@@ -370,7 +370,7 @@
mtx_unlock(&Giant);
- usb2_com_detach(&sc->sc_super_ucom, &(sc->sc_ucom), 1);
+ usb2_com_detach(&sc->sc_super_ucom, &sc->sc_ucom, 1);
usb2_transfer_unsetup(sc->sc_xfer_data, UMOSCOM_N_DATA_TRANSFER);
==== //depot/projects/usb/src/sys/dev/usb2/serial/uplcom2.c#8 (text+ko) ====
@@ -427,7 +427,7 @@
sc->sc_flag |= (UPLCOM_FLAG_READ_STALL |
UPLCOM_FLAG_WRITE_STALL);
- error = usb2_com_attach(&sc->sc_super_ucom, &(sc->sc_ucom), 1, sc,
+ error = usb2_com_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc,
&uplcom_callback, &Giant);
if (error) {
goto detach;
@@ -456,7 +456,7 @@
DPRINTF("sc=%p\n", sc);
- usb2_com_detach(&sc->sc_super_ucom, &(sc->sc_ucom), 1);
+ usb2_com_detach(&sc->sc_super_ucom, &sc->sc_ucom, 1);
usb2_transfer_unsetup(sc->sc_xfer, UPLCOM_N_TRANSFER);
==== //depot/projects/usb/src/sys/dev/usb2/serial/uvisor2.c#7 (text+ko) ====
@@ -345,7 +345,7 @@
sc->sc_flag |= (UVISOR_FLAG_WRITE_STALL |
UVISOR_FLAG_READ_STALL);
- error = usb2_com_attach(&sc->sc_super_ucom, &(sc->sc_ucom), 1, sc,
+ error = usb2_com_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc,
&uvisor_callback, &Giant);
if (error) {
DPRINTF("usb2_com_attach failed\n");
@@ -365,7 +365,7 @@
DPRINTF("sc=%p\n", sc);
- usb2_com_detach(&sc->sc_super_ucom, &(sc->sc_ucom), 1);
+ usb2_com_detach(&sc->sc_super_ucom, &sc->sc_ucom, 1);
usb2_transfer_unsetup(sc->sc_xfer, UVISOR_N_TRANSFER);
==== //depot/projects/usb/src/sys/dev/usb2/serial/uvscom2.c#7 (text+ko) ====
@@ -334,7 +334,7 @@
sc->sc_flag |= (UVSCOM_FLAG_WRITE_STALL |
UVSCOM_FLAG_READ_STALL);
- error = usb2_com_attach(&sc->sc_super_ucom, &(sc->sc_ucom), 1, sc,
+ error = usb2_com_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc,
&uvscom_callback, &Giant);
if (error) {
goto detach;
@@ -363,7 +363,7 @@
if (sc->sc_xfer[4]) {
usb2_transfer_stop(sc->sc_xfer[4]);
}
- usb2_com_detach(&sc->sc_super_ucom, &(sc->sc_ucom), 1);
+ usb2_com_detach(&sc->sc_super_ucom, &sc->sc_ucom, 1);
usb2_transfer_unsetup(sc->sc_xfer, UVSCOM_N_TRANSFER);
==== //depot/projects/usb/src/sys/dev/usb2/sound/uaudio2.c#13 (text+ko) ====
@@ -1316,7 +1316,7 @@
struct pcm_channel *c, int dir)
{
struct uaudio_chan *ch = ((dir == PCMDIR_PLAY) ?
- &sc->sc_play_chan : &(sc->sc_rec_chan));
+ &sc->sc_play_chan : &sc->sc_rec_chan);
uint8_t endpoint;
uint8_t iface_index;
uint8_t alt_index;
==== //depot/projects/usb/src/sys/dev/usb2/wlan/if_rum2.c#15 (text+ko) ====
@@ -469,7 +469,7 @@
"err=%s\n", usb2_errstr(error));
goto detach;
}
- error = usb2_config_td_setup(&sc->sc_config_td, sc, &(sc->sc_mtx),
+ error = usb2_config_td_setup(&sc->sc_config_td, sc, &sc->sc_mtx,
&rum_end_of_commands,
sizeof(struct usb2_config_td_cc), 24);
if (error) {
==== //depot/projects/usb/src/sys/dev/usb2/wlan/if_ural2.c#15 (text+ko) ====
@@ -462,7 +462,7 @@
"err=%s\n", usb2_errstr(error));
goto detach;
}
- error = usb2_config_td_setup(&sc->sc_config_td, sc, &(sc->sc_mtx),
+ error = usb2_config_td_setup(&sc->sc_config_td, sc, &sc->sc_mtx,
&ural_end_of_commands,
sizeof(struct usb2_config_td_cc), 24);
if (error) {
==== //depot/projects/usb/src/sys/dev/usb2/wlan/if_zyd2.c#16 (text+ko) ====
@@ -1097,7 +1097,7 @@
"transfers: %s\n", usb2_errstr(error));
goto detach;
}
- error = usb2_config_td_setup(&sc->sc_config_td, sc, &(sc->sc_mtx),
+ error = usb2_config_td_setup(&sc->sc_config_td, sc, &sc->sc_mtx,
&zyd_end_of_commands, sizeof(struct usb2_config_td_cc), 16);
if (error) {
device_printf(dev, "could not setup config "
From owner-p4-projects@FreeBSD.ORG Sun Sep 21 08:14:34 2008
Return-Path:
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id D70091065674; Sun, 21 Sep 2008 08:14:34 +0000 (UTC)
Delivered-To: perforce@FreeBSD.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
by hub.freebsd.org (Postfix) with ESMTP id 9B094106566C
for ; Sun, 21 Sep 2008 08:14:34 +0000 (UTC)
(envelope-from hselasky@FreeBSD.org)
Received: from repoman.freebsd.org (repoman.freebsd.org
[IPv6:2001:4f8:fff6::29])
by mx1.freebsd.org (Postfix) with ESMTP id 893B38FC18
for ; Sun, 21 Sep 2008 08:14:34 +0000 (UTC)
(envelope-from hselasky@FreeBSD.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id m8L8EY6k062182
for ; Sun, 21 Sep 2008 08:14:34 GMT
(envelope-from hselasky@FreeBSD.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.14.3/8.14.3/Submit) id m8L8EY2a062176
for perforce@freebsd.org; Sun, 21 Sep 2008 08:14:34 GMT
(envelope-from hselasky@FreeBSD.org)
Date: Sun, 21 Sep 2008 08:14:34 GMT
Message-Id: <200809210814.m8L8EY2a062176@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
hselasky@FreeBSD.org using -f
From: Hans Petter Selasky
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 150195 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Sun, 21 Sep 2008 08:14:35 -0000
http://perforce.freebsd.org/chv.cgi?CH=150195
Change 150195 by hselasky@hselasky_laptop001 on 2008/09/21 08:13:42
"usb2_proc_mwait()" should not be called locked.
Affected files ...
.. //depot/projects/usb/src/sys/dev/usb2/controller/usb2_controller.c#13 edit
Differences ...
==== //depot/projects/usb/src/sys/dev/usb2/controller/usb2_controller.c#13 (text+ko) ====
@@ -149,13 +149,13 @@
&bus->detach_msg[0], &bus->detach_msg[1])) {
/* ignore */
}
- mtx_unlock(&bus->mtx);
-
/* Wait for detach to complete */
usb2_proc_mwait(&bus->explore_proc,
&bus->detach_msg[0], &bus->detach_msg[1]);
+ mtx_unlock(&bus->mtx);
+
/* Get rid of USB explore process */
usb2_proc_unsetup(&bus->explore_proc);
From owner-p4-projects@FreeBSD.ORG Sun Sep 21 11:05:29 2008
Return-Path:
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id 986591065674; Sun, 21 Sep 2008 11:05:29 +0000 (UTC)
Delivered-To: perforce@FreeBSD.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
by hub.freebsd.org (Postfix) with ESMTP id 5C0A01065671
for ; Sun, 21 Sep 2008 11:05:29 +0000 (UTC)
(envelope-from hselasky@FreeBSD.org)
Received: from repoman.freebsd.org (repoman.freebsd.org
[IPv6:2001:4f8:fff6::29])
by mx1.freebsd.org (Postfix) with ESMTP id 2F17E8FC15
for ; Sun, 21 Sep 2008 11:05:29 +0000 (UTC)
(envelope-from hselasky@FreeBSD.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id m8LB5T9h008049
for ; Sun, 21 Sep 2008 11:05:29 GMT
(envelope-from hselasky@FreeBSD.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.14.3/8.14.3/Submit) id m8LB5TsR008043
for perforce@freebsd.org; Sun, 21 Sep 2008 11:05:29 GMT
(envelope-from hselasky@FreeBSD.org)
Date: Sun, 21 Sep 2008 11:05:29 GMT
Message-Id: <200809211105.m8LB5TsR008043@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
hselasky@FreeBSD.org using -f
From: Hans Petter Selasky
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 150197 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Sun, 21 Sep 2008 11:05:29 -0000
http://perforce.freebsd.org/chv.cgi?CH=150197
Change 150197 by hselasky@hselasky_laptop001 on 2008/09/21 11:05:09
Style existing usb2_core man-page and add multiple
new manual pages for all the new USB modules.
Affected files ...
.. //depot/projects/usb/src/share/man/man4/usb2_bluetooth.4#1 add
.. //depot/projects/usb/src/share/man/man4/usb2_controller.4#1 add
.. //depot/projects/usb/src/share/man/man4/usb2_core.4#4 edit
.. //depot/projects/usb/src/share/man/man4/usb2_ethernet.4#1 add
.. //depot/projects/usb/src/share/man/man4/usb2_image.4#1 add
.. //depot/projects/usb/src/share/man/man4/usb2_input.4#1 add
.. //depot/projects/usb/src/share/man/man4/usb2_misc.4#1 add
.. //depot/projects/usb/src/share/man/man4/usb2_ndis.4#1 add
.. //depot/projects/usb/src/share/man/man4/usb2_quirk.4#1 add
.. //depot/projects/usb/src/share/man/man4/usb2_serial.4#1 add
.. //depot/projects/usb/src/share/man/man4/usb2_sound.4#1 add
.. //depot/projects/usb/src/share/man/man4/usb2_storage.4#1 add
.. //depot/projects/usb/src/share/man/man4/usb2_template.4#1 add
.. //depot/projects/usb/src/share/man/man4/usb2_wlan.4#1 add
Differences ...
==== //depot/projects/usb/src/share/man/man4/usb2_core.4#4 (text+ko) ====
@@ -90,22 +90,28 @@
.Nm
module implements the core functionality of the USB standard and many
helper functions to make USB device driver programming easier and more
-safe. The
+safe.
+.
+The
.Nm
module supports both USB Host and USB Device side mode!
.
.Sh USB TRANSFER MANAGEMENT FUNCTIONS
-The USB standard defines four types of USB transfers. Control
-transfers, Bulk transfers, Interrupt transfers and Isochronous
-transfers. All the transfer types are managed using the following
-five functions:
+The USB standard defines four types of USB transfers.
+.
+Control transfers, Bulk transfers, Interrupt transfers and Isochronous
+transfers.
+.
+All the transfer types are managed using the following five functions:
.
.Pp
.
.Fn usb2_transfer_setup
This function will allocate memory for and initialise an array of USB
-transfers and all required DMA memory. This function can sleep or
-block waiting for resources to become available.
+transfers and all required DMA memory.
+.
+This function can sleep or block waiting for resources to become
+available.
.Fa udev
is a pointer to "struct usb2_device".
.Fa ifaces
@@ -137,70 +143,104 @@
that should be freed by the USB system.
.Fa n_setup
is a number telling the USB system how many USB transfers should be
-unsetup. This function can sleep waiting for USB transfers to
-complete. This function is NULL safe with regard to the USB transfer
-structure pointer. It is not allowed to call this function from the
-USB transfer callback.
+unsetup.
+.
+This function can sleep waiting for USB transfers to complete.
+.
+This function is NULL safe with regard to the USB transfer structure
+pointer.
+.
+It is not allowed to call this function from the USB transfer
+callback.
.
.Pp
.
.Fn usb2_transfer_start
This function will start the USB transfer pointed to by
.Fa xfer,
-if not already started. This function is always non-blocking and must
-be called with the so-called private USB mutex locked. This function
-is NULL safe with regard to the USB transfer structure pointer.
+if not already started.
+.
+This function is always non-blocking and must be called with the
+so-called private USB mutex locked.
+.
+This function is NULL safe with regard to the USB transfer structure
+pointer.
.
.Pp
.
.Fn usb2_transfer_stop
This function will stop the USB transfer pointed to by
.Fa xfer,
-if not already stopped. This function is always non-blocking and must
-be called with the so-called private USB mutex locked. This function
-can return before the USB callback has been called. This function is
-NULL safe with regard to the USB transfer structure pointer. If the
-transfer was in progress, the callback will called with "USB_ST_ERROR"
-and "xfer->error = USB_ERR_CANCELLED".
+if not already stopped.
+.
+This function is always non-blocking and must be called with the
+so-called private USB mutex locked.
+.
+This function can return before the USB callback has been called.
+.
+This function is NULL safe with regard to the USB transfer structure
+pointer.
+.
+If the transfer was in progress, the callback will called with
+"USB_ST_ERROR" and "xfer->error = USB_ERR_CANCELLED".
.
.Pp
.
.Fn usb2_transfer_drain
This function will stop an USB transfer, if not already stopped and
-wait for any additional USB hardware operations to complete. Buffers
-that are loaded into DMA using "usb2_set_frame_data()" can safely be
-freed after that this function has returned. This function can block
-the caller and will not return before the USB callback has been
-called. This function is NULL safe with regard to the USB transfer
-structure pointer.
+wait for any additional USB hardware operations to complete.
+.
+Buffers that are loaded into DMA using "usb2_set_frame_data()" can
+safely be freed after that this function has returned.
+.
+This function can block the caller and will not return before the USB
+callback has been called.
+.
+This function is NULL safe with regard to the USB transfer structure
+pointer.
.
.Sh USB TRANSFER CALLBACK
.
-The USB callback has three states. USB_ST_SETUP, USB_ST_TRANSFERRED
-and USB_ST_ERROR. USB_ST_SETUP is the initial state. After the
-callback has been called with this state it will always be called back
-at a later stage in one of the other two states. In the USB_ST_ERROR
-state the "error" field of the USB transfer structure is set to the
-error cause. The USB callback should not restart the USB transfer in
-case the error cause is USB_ERR_CANCELLED. The USB callback is
-protected from recursion. That means one can start and stop whatever
-transfer from the callback of another transfer one desires. Also the
-transfer that is currently called back. Recursion is handled like this
-that when the callback that wants to recurse returns it is called one
-more time.
+The USB callback has three states.
+.
+USB_ST_SETUP, USB_ST_TRANSFERRED and USB_ST_ERROR. USB_ST_SETUP is the
+initial state.
+.
+After the callback has been called with this state it will always be
+called back at a later stage in one of the other two states.
+.
+In the USB_ST_ERROR state the "error" field of the USB transfer
+structure is set to the error cause.
+.
+The USB callback should not restart the USB transfer in case the error
+cause is USB_ERR_CANCELLED.
+.
+The USB callback is protected from recursion.
+.
+That means one can start and stop whatever transfer from the callback
+of another transfer one desires.
+.
+Also the transfer that is currently called back.
+.
+Recursion is handled like this that when the callback that wants to
+recurse returns it is called one more time.
.
.
.Pp
.
.Fn usb2_start_hardware
This function should only be called from within the USB callback and
-is used to start the USB hardware. Typical parameters that should be
-set in the USB transfer structure before this function is called are
-"frlengths[]", "nframes" and "frbuffers[]". An USB transfer can have
-multiple frames consisting of one or more USB packets making up an I/O
-vector for all USB transfer types. After the USB transfer is complete
-"frlengths[]" is updated to the actual USB transfer length for the
-given frame.
+is used to start the USB hardware.
+.
+Typical parameters that should be set in the USB transfer structure
+before this function is called are "frlengths[]", "nframes" and
+"frbuffers[]".
+.
+An USB transfer can have multiple frames consisting of one or more USB
+packets making up an I/O vector for all USB transfer types.
+.
+After the USB transfer is complete "frlengths[]" is updated to the
+actual USB transfer length for the given frame.
.Bd -literal -offset indent
void
usb2_default_callback(struct usb2_xfer *xfer)
@@ -238,13 +278,17 @@
.Ed
.
.Sh USB CONTROL TRANSFERS
-An USB control transfer has three parts. First the SETUP packet, then
-DATA packet(s) and then a STATUS packet. The SETUP packet is always
-pointed to by "xfer->frbuffers[0]" and the length is stored in
-"xfer->frlengths[0]" also if there should not be sent any SETUP
-packet! If an USB control transfer has no DATA stage, then
-"xfer->nframes" should be set to 1. Else the default value is
-"xfer->nframes" equal to 2.
+An USB control transfer has three parts.
+.
+First the SETUP packet, then DATA packet(s) and then a STATUS
+packet.
+.
+The SETUP packet is always pointed to by "xfer->frbuffers[0]" and the
+length is stored in "xfer->frlengths[0]" also if there should not be
+sent any SETUP packet! If an USB control transfer has no DATA stage,
+then "xfer->nframes" should be set to 1.
+.
+Else the default value is "xfer->nframes" equal to 2.
.
.Bd -literal -offset indent
@@ -309,31 +353,50 @@
.
.Pp
.Fa type
-field selects the USB pipe type. Valid values are: UE_INTERRUPT,
-UE_CONTROL, UE_BULK, UE_ISOCHRONOUS. The special value UE_BULK_INTR
-will select BULK and INTERRUPT pipes. This field is mandatory.
+field selects the USB pipe type.
+.
+Valid values are: UE_INTERRUPT, UE_CONTROL, UE_BULK,
+UE_ISOCHRONOUS.
+.
+The special value UE_BULK_INTR will select BULK and INTERRUPT pipes.
+.
+This field is mandatory.
.
.Pp
.Fa endpoint
-field selects the USB endpoint number. A value of 0xFF, "-1" or
-"UE_ADDR_ANY" will select the first matching endpoint. This field is
-mandatory.
+field selects the USB endpoint number.
+.
+A value of 0xFF, "-1" or "UE_ADDR_ANY" will select the first matching
+endpoint.
+.
+This field is mandatory.
.
.Pp
.Fa direction
-field selects the USB endpoint direction. A value of "UE_DIR_ANY" will
-select the first matching endpoint. Else valid values are: "UE_DIR_IN"
-and "UE_DIR_OUT". "UE_DIR_IN" and "UE_DIR_OUT" can be binary ORed by
-"UE_DIR_SID" which means that the direction will be swapped in case of
-USB_MODE_DEVICE. Note that "UE_DIR_IN" refers to the data transfer
-direction of the "IN" tokens and "UE_DIR_OUT" refers to the data
-transfer direction of the "OUT" tokens. This field is mandatory.
+field selects the USB endpoint direction.
+.
+A value of "UE_DIR_ANY" will select the first matching endpoint.
+.
+Else valid values are: "UE_DIR_IN" and "UE_DIR_OUT".
+.
+"UE_DIR_IN" and "UE_DIR_OUT" can be binary OR'ed by "UE_DIR_SID" which
+means that the direction will be swapped in case of
+USB_MODE_DEVICE.
+.
+Note that "UE_DIR_IN" refers to the data transfer direction of the
+"IN" tokens and "UE_DIR_OUT" refers to the data transfer direction of
+the "OUT" tokens.
+.
+This field is mandatory.
.
.Pp
.Fa interval
-field selects the interrupt interval. The value of this field is given
-in milliseconds and is independent of device speed. Depending on the
-endpoint type, this field has different meaning:
+field selects the interrupt interval.
+.
+The value of this field is given in milliseconds and is independent of
+device speed.
+.
+Depending on the endpoint type, this field has different meaning:
.Bl -tag
.It UE_INTERRUPT
"0" use the default interrupt interval based on endpoint descriptor.
@@ -410,10 +473,13 @@
The purpose of this flag is to avoid races when multiple transfers are
queued for execution on an USB endpoint, and the first executing
transfer fails leading to the need for clearing of stall for
-example. In this case this flag is used to prevent the following USB
-transfers from being executed at the same time the clear-stall command
-is executed on the USB control endpoint. This flag can be changed
-during operation.
+example.
+.
+In this case this flag is used to prevent the following USB transfers
+from being executed at the same time the clear-stall command is
+executed on the USB control endpoint.
+.
+This flag can be changed during operation.
.Pp
"BOF" is short for "Block On Failure"
.Pp
@@ -423,26 +489,40 @@
.
.It proxy_buffer
Setting this flag will cause that the total buffer size will be
-rounded up to the nearest atomic hardware transfer size. The maximum
-data length of any USB transfer is always stored in the
-"xfer->max_data_length". For control transfers the USB kernel will
-allocate additional space for the 8-bytes of SETUP header. These
-8-bytes are not counted by the "xfer->max_data_length" variable. This
-flag can not be changed during operation.
+rounded up to the nearest atomic hardware transfer size.
+.
+The maximum data length of any USB transfer is always stored in the
+"xfer->max_data_length".
+.
+For control transfers the USB kernel will allocate additional space
+for the 8-bytes of SETUP header.
+.
+These 8-bytes are not counted by the "xfer->max_data_length"
+variable.
+.
+This flag can not be changed during operation.
.
.
.It ext_buffer
Setting this flag will cause that no data buffer will be
-allocated. Instead the USB client must supply a data buffer. This
-flag can not be changed during operation.
+allocated.
+.
+Instead the USB client must supply a data buffer.
+.
+This flag can not be changed during operation.
.
.
.It manual_status
Setting this flag prevents an USB STATUS stage to be appended to the
-end of the USB control transfer. If no control data is transferred
-this flag must be cleared. Else an error will be returned to the USB
-callback. This flag is mostly useful for the USB device side. This
-flag can be changed during operation.
+end of the USB control transfer.
+.
+If no control data is transferred this flag must be cleared.
+.
+Else an error will be returned to the USB callback.
+.
+This flag is mostly useful for the USB device side.
+.
+This flag can be changed during operation.
.
.
.It no_pipe_ok
@@ -454,10 +534,12 @@
.Bl -tag
.It Device Side Mode
Setting this flag will cause STALL pids to be sent to the endpoint
-belonging to this transfer before the transfer is started. The
-transfer is started at the moment the host issues a clear-stall
-command on the STALL'ed endpoint. This flag can be changed during
-operation.
+belonging to this transfer before the transfer is started.
+.
+The transfer is started at the moment the host issues a clear-stall
+command on the STALL'ed endpoint.
+.
+This flag can be changed during operation.
.It Host Side Mode
Setting this flag will cause a clear-stall control request to be
executed on the endpoint before the USB transfer is started.
@@ -470,10 +552,14 @@
.El
.Pp
.Fa bufsize
-field sets the total buffer size in bytes. If this field is zero,
-"wMaxPacketSize" will be used, multiplied by the "frames" field if the
-transfer type is ISOCHRONOUS. This is useful for setting up interrupt
-pipes. This field is mandatory.
+field sets the total buffer size in bytes.
+.
+If this field is zero, "wMaxPacketSize" will be used, multiplied by
+the "frames" field if the transfer type is ISOCHRONOUS.
+.
+This is useful for setting up interrupt pipes.
+.
+This field is mandatory.
.Pp
NOTE: For control transfers "bufsize" includes the length of the
request structure.
@@ -497,7 +583,9 @@
The
.Nm
module implements fine grained read and write access based on username
-and group. Access is granted at four levels:
+and group.
+.
+Access is granted at four levels:
.
.Bl -tag
.It Level 4 - USB interface
@@ -513,13 +601,18 @@
The
.Nm
module will search for access rights starting at level 4 continuing
-downwards to USB at level 1. For critical applications you should be
-aware that the outgoing serial BUS traffic will be broadcasted to all
-USB devices. For absolute security USB devices that require different
-access rights should not be placed on the same USB BUS or controller.
+downwards to USB at level 1.
+.
+For critical applications you should be aware that the outgoing serial
+BUS traffic will be broadcasted to all USB devices.
+.
+For absolute security USB devices that require different access rights
+should not be placed on the same USB BUS or controller.
+.
If connected to the same USB bus, it is possible that a USB device can
-sniff and intercept the communication of another USB device. Using USB
-HUBs will not solve this problem.
+sniff and intercept the communication of another USB device.
+.
+Using USB HUBs will not solve this problem.
.Sh SEE ALSO
.Xr usb2_controller 4
.Xr usbconfig 8
From owner-p4-projects@FreeBSD.ORG Sun Sep 21 11:09:29 2008
Return-Path:
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id 7246F1065671; Sun, 21 Sep 2008 11:09:29 +0000 (UTC)
Delivered-To: perforce@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
by hub.freebsd.org (Postfix) with ESMTP id 35BB61065677
for ; Sun, 21 Sep 2008 11:09:29 +0000 (UTC)
(envelope-from hselasky@c2i.net)
Received: from swip.net (mailfe10.swipnet.se [212.247.155.33])
by mx1.freebsd.org (Postfix) with ESMTP id C38378FC14
for ; Sun, 21 Sep 2008 11:09:28 +0000 (UTC)
(envelope-from hselasky@c2i.net)
X-Cloudmark-Score: 0.000000 []
X-Cloudmark-Analysis: v=1.0 c=1 a=BsTSfCnn7dcA:10 a=6I5d2MoRAAAA:8
a=Mt58vldkky-VyQzgpcMA:9 a=wSGNlfDo8hLKqt6A8QMDxWzv7-oA:4
a=LY0hPdMaydYA:10
Received: from [193.217.167.134] (account mc467741@c2i.net HELO [10.0.0.249])
by mailfe10.swip.net (CommuniGate Pro SMTP 5.2.6)
with ESMTPA id 914734352 for perforce@freebsd.org;
Sun, 21 Sep 2008 12:09:25 +0200
From: Hans Petter Selasky
To: Perforce Change Reviews
Date: Sun, 21 Sep 2008 12:11:21 +0200
User-Agent: KMail/1.9.7
References: <200809210814.m8L8EY2a062176@repoman.freebsd.org>
In-Reply-To: <200809210814.m8L8EY2a062176@repoman.freebsd.org>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200809211211.21530.hselasky@c2i.net>
Cc:
Subject: Re: PERFORCE change 150195 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Sun, 21 Sep 2008 11:09:29 -0000
On Sunday 21 September 2008, Hans Petter Selasky wrote:
> http://perforce.freebsd.org/chv.cgi?CH=150195
>
> Change 150195 by hselasky@hselasky_laptop001 on 2008/09/21 08:13:42
>
>
Small typo:
> "usb2_proc_mwait()" should not be called locked.
^^unlocked
--HPS
From owner-p4-projects@FreeBSD.ORG Sun Sep 21 12:45:21 2008
Return-Path:
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id D0A791065677; Sun, 21 Sep 2008 12:45:21 +0000 (UTC)
Delivered-To: perforce@FreeBSD.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
by hub.freebsd.org (Postfix) with ESMTP id 7C3361065674
for ; Sun, 21 Sep 2008 12:45:21 +0000 (UTC)
(envelope-from pgj@FreeBSD.org)
Received: from repoman.freebsd.org (repoman.freebsd.org
[IPv6:2001:4f8:fff6::29])
by mx1.freebsd.org (Postfix) with ESMTP id 69A618FC0C
for ; Sun, 21 Sep 2008 12:45:21 +0000 (UTC)
(envelope-from pgj@FreeBSD.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id m8LCjLT9020234
for ; Sun, 21 Sep 2008 12:45:21 GMT
(envelope-from pgj@FreeBSD.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.14.3/8.14.3/Submit) id m8LCjLd0020187
for perforce@freebsd.org; Sun, 21 Sep 2008 12:45:21 GMT
(envelope-from pgj@FreeBSD.org)
Date: Sun, 21 Sep 2008 12:45:21 GMT
Message-Id: <200809211245.m8LCjLd0020187@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
pgj@FreeBSD.org using -f
From: Gabor Pali
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 150199 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Sun, 21 Sep 2008 12:45:22 -0000
http://perforce.freebsd.org/chv.cgi?CH=150199
Change 150199 by pgj@kolbasz on 2008/09/21 12:44:49
IFC
Affected files ...
.. //depot/projects/docproj_hu/doc/hu_HU.ISO8859-2/books/handbook/advanced-networking/chapter.sgml#18 integrate
.. //depot/projects/docproj_hu/doc/hu_HU.ISO8859-2/books/handbook/config/chapter.sgml#14 integrate
.. //depot/projects/docproj_hu/doc/hu_HU.ISO8859-2/books/handbook/mirrors/chapter.sgml#13 integrate
.. //depot/projects/docproj_hu/doc/hu_HU.ISO8859-2/books/handbook/ppp-and-slip/chapter.sgml#9 integrate
.. //depot/projects/docproj_hu/doc/hu_HU.ISO8859-2/books/handbook/x11/chapter.sgml#7 integrate
.. //depot/projects/docproj_hu/doc/hu_HU.ISO8859-2/share/sgml/freebsd.ent#8 integrate
.. //depot/projects/docproj_hu/www/en/cgi/cgi-style.pl#2 integrate
.. //depot/projects/docproj_hu/www/en/docs/webresources.sgml#2 integrate
.. //depot/projects/docproj_hu/www/en/projects/summerofcode.xsl#2 integrate
.. //depot/projects/docproj_hu/www/en/security/security.sgml#3 integrate
.. //depot/projects/docproj_hu/www/hu/where.sgml#9 integrate
.. //depot/projects/docproj_hu/www/share/sgml/news.xml#20 integrate
Differences ...
==== //depot/projects/docproj_hu/doc/hu_HU.ISO8859-2/books/handbook/advanced-networking/chapter.sgml#18 (text+ko) ====
@@ -1,7 +1,7 @@
+
@@ -42,11 +42,12 @@
organization in the Google Summer of
Code 2008. This program funds students to contribute to an open
- source project over the summer break. We have had over 50 successful
+ source project over the summer break. We have had over 70 successful
students working on FreeBSD as part of this program in 2005, 2006, and 2007.
+ href="&base;/projects/summerofcode-2006.html">2006, 2007. and 2008.
- Benefits of Participating
@@ -86,11 +87,7 @@
We've recently announced the
- successful student applicants for the Summer of Code 2008 and we are
- currently working to create accounts for them and help integrate
- these students into our community. More information about this
- year's student projects will soon be available on our wiki.
+ successful students from the Summer of Code 2008.
Past Student Projects
@@ -98,6 +95,8 @@
For a complete list of student projects from previous years,
visit:
See also our wiki pages for student projects [2008,
+2007,
2006, and
@@ -165,9 +166,10 @@
What projects were completed successfully by students
last summer?
- Please see the 2007 FreeBSD
+ Please see the 2008 FreeBSD
Summer of Code page, as well as older project pages from 2006 and 2007, 2006, and 2005 for a list of the
completed projects from previous years.
==== //depot/projects/docproj_hu/www/en/security/security.sgml#3 (text+ko) ====
@@ -1,12 +1,12 @@
-
+
%developers;
]>
-
+
&header;
@@ -56,6 +56,18 @@
After this information has been reported the Security Officer or
a Security Team delegate will get back with you.
+ Spam filters
+
+ Due to high volume of spam the main security contact mail
+ addresses are subject to spam filtering. If you cannot contact
+ the FreeBSD Security Officers or Security Team due to spam filters
+ (or suspect your mail has been filtered), please send mail to
+ security-officer-XXXX@FreeBSD.org with
+ XXXX replaced with 3432 instead of the normal
+ addresses. Note that this address will be changed periodically so
+ check back here for the latest address. Mails to this address
+ will go to the FreeBSD Security Officer Team.
+
The FreeBSD Security Officer Team and the FreeBSD Security Team
==== //depot/projects/docproj_hu/www/hu/where.sgml#9 (text+ko) ====
@@ -1,5 +1,5 @@
+
==== //depot/projects/docproj_hu/www/share/sgml/news.xml#20 (text+ko) ====
@@ -15,12 +15,17 @@
Use the element if the content is lengthy. When generating
synopses of this information (e.g., for syndication using RDF files),
the contents of
will be preferred over .
+
+ *** Former Summer of Code Students: Please note that you are an
+ SoC alumnus when you add your new committer announcement.
+ Also, don't feel shy to add more information about what you
+ would like to work on. ***
-->
- $FreeBSD: www/share/sgml/news.xml,v 1.196 2008/09/18 14:45:45 zec Exp $
+ $FreeBSD: www/share/sgml/news.xml,v 1.198 2008/09/19 05:09:13 murray Exp $
@@ -33,6 +38,18 @@
18
+
+ Summer of Code Projects Completed
+
+ We are happy to report that 19 students successfully
+ completed their FreeBSD Summer of
+ Code projects. Congratulations to both mentors and
+ students, and thanks to Google for running this
+ program and providing funding.
+
+
New committer: Marko Zec
(src)
@@ -108,7 +125,7 @@
Enhanced commit privileges: Edward Tomasz Napierala
- (src, ports)
+ (src, ports) SoC2008 alumnus.
From owner-p4-projects@FreeBSD.ORG Sun Sep 21 13:04:41 2008
Return-Path:
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id 70800106567D; Sun, 21 Sep 2008 13:04:41 +0000 (UTC)
Delivered-To: perforce@FreeBSD.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
by hub.freebsd.org (Postfix) with ESMTP id 3492A106567B
for ; Sun, 21 Sep 2008 13:04:41 +0000 (UTC)
(envelope-from pgj@FreeBSD.org)
Received: from repoman.freebsd.org (repoman.freebsd.org
[IPv6:2001:4f8:fff6::29])
by mx1.freebsd.org (Postfix) with ESMTP id 23F918FC18
for ; Sun, 21 Sep 2008 13:04:41 +0000 (UTC)
(envelope-from pgj@FreeBSD.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id m8LD4fTu047286
for ; Sun, 21 Sep 2008 13:04:41 GMT
(envelope-from pgj@FreeBSD.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.14.3/8.14.3/Submit) id m8LD4eav047281
for perforce@freebsd.org; Sun, 21 Sep 2008 13:04:40 GMT
(envelope-from pgj@FreeBSD.org)
Date: Sun, 21 Sep 2008 13:04:40 GMT
Message-Id: <200809211304.m8LD4eav047281@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
pgj@FreeBSD.org using -f
From: Gabor Pali
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 150200 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Sun, 21 Sep 2008 13:04:41 -0000
http://perforce.freebsd.org/chv.cgi?CH=150200
Change 150200 by pgj@kolbasz on 2008/09/21 13:04:32
MFen (www):
1.8 -> 1.9 en/docs/webresources.sgml
Affected files ...
.. //depot/projects/docproj_hu/www/hu/docs/webresources.sgml#9 edit
Differences ...
==== //depot/projects/docproj_hu/www/hu/docs/webresources.sgml#9 (text+ko) ====
@@ -9,26 +9,12 @@
&header;
- Linkek
-
-
-
A valós világban...