Include <sys/rndsource.h> where it is actually used. I had removed <sys/rnd.h> from files that didn't mention anything of the rnd(9) API. But they included other files which assumed <sys/rnd.h> had already been included.diff -r1.5 -r1.6 src/sys/arch/arm/at91/at91dbguvar.h
(riastradh)
--- src/sys/arch/arm/at91/at91dbguvar.h 2012/02/02 19:42:57 1.5
+++ src/sys/arch/arm/at91/at91dbguvar.h 2015/04/14 20:32:35 1.6
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: at91dbguvar.h,v 1.5 2012/02/02 19:42:57 tls Exp $ */ | 1 | /* $NetBSD: at91dbguvar.h,v 1.6 2015/04/14 20:32:35 riastradh Exp $ */ | |
2 | 2 | |||
3 | /*- | 3 | /*- | |
4 | * Copyright (c) 2007 Embedtronics Oy | 4 | * Copyright (c) 2007 Embedtronics Oy | |
5 | * | 5 | * | |
6 | * Redistribution and use in source and binary forms, with or without | 6 | * Redistribution and use in source and binary forms, with or without | |
7 | * modification, are permitted provided that the following conditions | 7 | * modification, are permitted provided that the following conditions | |
8 | * are met: | 8 | * are met: | |
9 | * 1. Redistributions of source code must retain the above copyright | 9 | * 1. Redistributions of source code must retain the above copyright | |
10 | * notice, this list of conditions and the following disclaimer. | 10 | * notice, this list of conditions and the following disclaimer. | |
11 | * 2. Redistributions in binary form must reproduce the above copyright | 11 | * 2. Redistributions in binary form must reproduce the above copyright | |
12 | * notice, this list of conditions and the following disclaimer in the | 12 | * notice, this list of conditions and the following disclaimer in the | |
13 | * documentation and/or other materials provided with the distribution. | 13 | * documentation and/or other materials provided with the distribution. | |
14 | * | 14 | * | |
@@ -21,26 +21,30 @@ | @@ -21,26 +21,30 @@ | |||
21 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | 21 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |
22 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | 22 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | |
23 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | 23 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | |
24 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 24 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |
25 | * SUCH DAMAGE. | 25 | * SUCH DAMAGE. | |
26 | * | 26 | * | |
27 | */ | 27 | */ | |
28 | 28 | |||
29 | #ifndef _AT91DBGUVAR_H_ | 29 | #ifndef _AT91DBGUVAR_H_ | |
30 | #define _AT91DBGUVAR_H_ | 30 | #define _AT91DBGUVAR_H_ | |
31 | 31 | |||
32 | #include <sys/tty.h> | 32 | #include <sys/tty.h> | |
33 | 33 | |||
34 | #ifdef RND_COM | |||
35 | #include <sys/rndsource.h> | |||
36 | #endif | |||
37 | ||||
34 | /* Hardware flag masks */ | 38 | /* Hardware flag masks */ | |
35 | #define COM_HW_NOIEN 0x01 | 39 | #define COM_HW_NOIEN 0x01 | |
36 | #define COM_HW_DEV_OK 0x20 | 40 | #define COM_HW_DEV_OK 0x20 | |
37 | #define COM_HW_CONSOLE 0x40 | 41 | #define COM_HW_CONSOLE 0x40 | |
38 | #define COM_HW_KGDB 0x80 | 42 | #define COM_HW_KGDB 0x80 | |
39 | 43 | |||
40 | #define RX_TTY_BLOCKED 0x01 | 44 | #define RX_TTY_BLOCKED 0x01 | |
41 | #define RX_TTY_OVERFLOWED 0x02 | 45 | #define RX_TTY_OVERFLOWED 0x02 | |
42 | #define RX_IBUF_BLOCKED 0x04 | 46 | #define RX_IBUF_BLOCKED 0x04 | |
43 | #define RX_IBUF_OVERFLOWED 0x08 | 47 | #define RX_IBUF_OVERFLOWED 0x08 | |
44 | #define RX_ANY_BLOCK 0x0f | 48 | #define RX_ANY_BLOCK 0x0f | |
45 | 49 | |||
46 | #define AT91DBGU_RING_SIZE 2048 | 50 | #define AT91DBGU_RING_SIZE 2048 |
--- src/sys/arch/arm/at91/at91usartvar.h 2012/11/12 18:00:36 1.6
+++ src/sys/arch/arm/at91/at91usartvar.h 2015/04/14 20:32:35 1.7
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: at91usartvar.h,v 1.6 2012/11/12 18:00:36 skrll Exp $ */ | 1 | /* $NetBSD: at91usartvar.h,v 1.7 2015/04/14 20:32:35 riastradh Exp $ */ | |
2 | 2 | |||
3 | /*- | 3 | /*- | |
4 | * Copyright (c) 2007 Embedtronics Oy. All rights reserved. | 4 | * Copyright (c) 2007 Embedtronics Oy. All rights reserved. | |
5 | * | 5 | * | |
6 | * Redistribution and use in source and binary forms, with or without | 6 | * Redistribution and use in source and binary forms, with or without | |
7 | * modification, are permitted provided that the following conditions | 7 | * modification, are permitted provided that the following conditions | |
8 | * are met: | 8 | * are met: | |
9 | * 1. Redistributions of source code must retain the above copyright | 9 | * 1. Redistributions of source code must retain the above copyright | |
10 | * notice, this list of conditions and the following disclaimer. | 10 | * notice, this list of conditions and the following disclaimer. | |
11 | * 2. Redistributions in binary form must reproduce the above copyright | 11 | * 2. Redistributions in binary form must reproduce the above copyright | |
12 | * notice, this list of conditions and the following disclaimer in the | 12 | * notice, this list of conditions and the following disclaimer in the | |
13 | * documentation and/or other materials provided with the distribution. | 13 | * documentation and/or other materials provided with the distribution. | |
14 | * | 14 | * | |
@@ -21,26 +21,29 @@ | @@ -21,26 +21,29 @@ | |||
21 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | 21 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |
22 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | 22 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | |
23 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | 23 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | |
24 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 24 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |
25 | * SUCH DAMAGE. | 25 | * SUCH DAMAGE. | |
26 | * | 26 | * | |
27 | */ | 27 | */ | |
28 | 28 | |||
29 | #ifndef _AT91USARTVAR_H_ | 29 | #ifndef _AT91USARTVAR_H_ | |
30 | #define _AT91USARTVAR_H_ | 30 | #define _AT91USARTVAR_H_ | |
31 | 31 | |||
32 | #include <sys/tty.h> | 32 | #include <sys/tty.h> | |
33 | #include <arm/at91/at91pdcvar.h> | 33 | #include <arm/at91/at91pdcvar.h> | |
34 | #ifdef RND_COM | |||
35 | #include <sys/rndsource.h> | |||
36 | #endif | |||
34 | 37 | |||
35 | /* Hardware flag masks */ | 38 | /* Hardware flag masks */ | |
36 | #define COM_HW_NOIEN 0x01 | 39 | #define COM_HW_NOIEN 0x01 | |
37 | #define COM_HW_DEV_OK 0x20 | 40 | #define COM_HW_DEV_OK 0x20 | |
38 | #define COM_HW_CONSOLE 0x40 | 41 | #define COM_HW_CONSOLE 0x40 | |
39 | #define COM_HW_KGDB 0x80 | 42 | #define COM_HW_KGDB 0x80 | |
40 | 43 | |||
41 | #define RX_TTY_BLOCKED 0x01 | 44 | #define RX_TTY_BLOCKED 0x01 | |
42 | #define RX_TTY_OVERFLOWED 0x02 | 45 | #define RX_TTY_OVERFLOWED 0x02 | |
43 | #define RX_IBUF_BLOCKED 0x04 | 46 | #define RX_IBUF_BLOCKED 0x04 | |
44 | #define RX_IBUF_OVERFLOWED 0x08 | 47 | #define RX_IBUF_OVERFLOWED 0x08 | |
45 | #define RX_ANY_BLOCK 0x0f | 48 | #define RX_ANY_BLOCK 0x0f | |
46 | 49 |
--- src/sys/arch/arm/ep93xx/epcomvar.h 2012/10/27 17:17:37 1.7
+++ src/sys/arch/arm/ep93xx/epcomvar.h 2015/04/14 20:32:35 1.8
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: epcomvar.h,v 1.7 2012/10/27 17:17:37 chs Exp $ */ | 1 | /* $NetBSD: epcomvar.h,v 1.8 2015/04/14 20:32:35 riastradh Exp $ */ | |
2 | /*- | 2 | /*- | |
3 | * Copyright (c) 2004 Jesse Off | 3 | * Copyright (c) 2004 Jesse Off | |
4 | * | 4 | * | |
5 | * Redistribution and use in source and binary forms, with or without | 5 | * Redistribution and use in source and binary forms, with or without | |
6 | * modification, are permitted provided that the following conditions | 6 | * modification, are permitted provided that the following conditions | |
7 | * are met: | 7 | * are met: | |
8 | * 1. Redistributions of source code must retain the above copyright | 8 | * 1. Redistributions of source code must retain the above copyright | |
9 | * notice, this list of conditions and the following disclaimer. | 9 | * notice, this list of conditions and the following disclaimer. | |
10 | * 2. Redistributions in binary form must reproduce the above copyright | 10 | * 2. Redistributions in binary form must reproduce the above copyright | |
11 | * notice, this list of conditions and the following disclaimer in the | 11 | * notice, this list of conditions and the following disclaimer in the | |
12 | * documentation and/or other materials provided with the distribution. | 12 | * documentation and/or other materials provided with the distribution. | |
13 | * | 13 | * | |
14 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | 14 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | |
@@ -18,26 +18,30 @@ | @@ -18,26 +18,30 @@ | |||
18 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | 18 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | |
19 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | 19 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | |
20 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | 20 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |
21 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | 21 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | |
22 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | 22 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | |
23 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 23 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |
24 | * SUCH DAMAGE. | 24 | * SUCH DAMAGE. | |
25 | * | 25 | * | |
26 | */ | 26 | */ | |
27 | 27 | |||
28 | #ifndef _EPCOMVAR_H_ | 28 | #ifndef _EPCOMVAR_H_ | |
29 | #define _EPCOMVAR_H_ | 29 | #define _EPCOMVAR_H_ | |
30 | 30 | |||
31 | #ifdef RND_COM | |||
32 | #include <sys/rndsource.h> | |||
33 | #endif | |||
34 | ||||
31 | /* Hardware flag masks */ | 35 | /* Hardware flag masks */ | |
32 | #define COM_HW_NOIEN 0x01 | 36 | #define COM_HW_NOIEN 0x01 | |
33 | #define COM_HW_DEV_OK 0x20 | 37 | #define COM_HW_DEV_OK 0x20 | |
34 | #define COM_HW_CONSOLE 0x40 | 38 | #define COM_HW_CONSOLE 0x40 | |
35 | #define COM_HW_KGDB 0x80 | 39 | #define COM_HW_KGDB 0x80 | |
36 | 40 | |||
37 | #define RX_TTY_BLOCKED 0x01 | 41 | #define RX_TTY_BLOCKED 0x01 | |
38 | #define RX_TTY_OVERFLOWED 0x02 | 42 | #define RX_TTY_OVERFLOWED 0x02 | |
39 | #define RX_IBUF_BLOCKED 0x04 | 43 | #define RX_IBUF_BLOCKED 0x04 | |
40 | #define RX_IBUF_OVERFLOWED 0x08 | 44 | #define RX_IBUF_OVERFLOWED 0x08 | |
41 | #define RX_ANY_BLOCK 0x0f | 45 | #define RX_ANY_BLOCK 0x0f | |
42 | 46 | |||
43 | #define EPCOM_RING_SIZE 2048 | 47 | #define EPCOM_RING_SIZE 2048 |
--- src/sys/arch/arm/s3c2xx0/sscom_var.h 2014/03/14 21:40:48 1.13
+++ src/sys/arch/arm/s3c2xx0/sscom_var.h 2015/04/14 20:32:35 1.14
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: sscom_var.h,v 1.13 2014/03/14 21:40:48 matt Exp $ */ | 1 | /* $NetBSD: sscom_var.h,v 1.14 2015/04/14 20:32:35 riastradh Exp $ */ | |
2 | 2 | |||
3 | /* | 3 | /* | |
4 | * Copyright (c) 2002, 2003 Fujitsu Component Limited | 4 | * Copyright (c) 2002, 2003 Fujitsu Component Limited | |
5 | * Copyright (c) 2002, 2003 Genetec Corporation | 5 | * Copyright (c) 2002, 2003 Genetec Corporation | |
6 | * All rights reserved. | 6 | * All rights reserved. | |
7 | * | 7 | * | |
8 | * Redistribution and use in source and binary forms, with or without | 8 | * Redistribution and use in source and binary forms, with or without | |
9 | * modification, are permitted provided that the following conditions | 9 | * modification, are permitted provided that the following conditions | |
10 | * are met: | 10 | * are met: | |
11 | * 1. Redistributions of source code must retain the above copyright | 11 | * 1. Redistributions of source code must retain the above copyright | |
12 | * notice, this list of conditions and the following disclaimer. | 12 | * notice, this list of conditions and the following disclaimer. | |
13 | * 2. Redistributions in binary form must reproduce the above copyright | 13 | * 2. Redistributions in binary form must reproduce the above copyright | |
14 | * notice, this list of conditions and the following disclaimer in the | 14 | * notice, this list of conditions and the following disclaimer in the | |
@@ -66,26 +66,29 @@ | @@ -66,26 +66,29 @@ | |||
66 | #ifndef _ARM_S3C2XX0_SSCOM_VAR_H | 66 | #ifndef _ARM_S3C2XX0_SSCOM_VAR_H | |
67 | #define _ARM_S3C2XX0_SSCOM_VAR_H | 67 | #define _ARM_S3C2XX0_SSCOM_VAR_H | |
68 | 68 | |||
69 | #include "opt_multiprocessor.h" | 69 | #include "opt_multiprocessor.h" | |
70 | #include "opt_lockdebug.h" | 70 | #include "opt_lockdebug.h" | |
71 | #include "opt_sscom.h" | 71 | #include "opt_sscom.h" | |
72 | 72 | |||
73 | #include <sys/param.h> | 73 | #include <sys/param.h> | |
74 | #include <sys/systm.h> | 74 | #include <sys/systm.h> | |
75 | #include <sys/device.h> | 75 | #include <sys/device.h> | |
76 | #include <sys/termios.h> | 76 | #include <sys/termios.h> | |
77 | #include <sys/callout.h> | 77 | #include <sys/callout.h> | |
78 | #include <sys/bus.h> | 78 | #include <sys/bus.h> | |
79 | #ifdef RND_COM | |||
80 | #include <sys/rndsource.h> | |||
81 | #endif | |||
79 | 82 | |||
80 | #ifdef SSCOM_S3C2410 | 83 | #ifdef SSCOM_S3C2410 | |
81 | #include <arm/s3c2xx0/s3c2410reg.h> | 84 | #include <arm/s3c2xx0/s3c2410reg.h> | |
82 | #include <arm/s3c2xx0/s3c2410var.h> | 85 | #include <arm/s3c2xx0/s3c2410var.h> | |
83 | #elif defined(SSCOM_S3C2440) | 86 | #elif defined(SSCOM_S3C2440) | |
84 | #include <arm/s3c2xx0/s3c2440reg.h> | 87 | #include <arm/s3c2xx0/s3c2440reg.h> | |
85 | #include <arm/s3c2xx0/s3c2440var.h> | 88 | #include <arm/s3c2xx0/s3c2440var.h> | |
86 | #endif | 89 | #endif | |
87 | 90 | |||
88 | /* Hardware flag masks */ | 91 | /* Hardware flag masks */ | |
89 | #define SSCOM_HW_FLOW 0x02 | 92 | #define SSCOM_HW_FLOW 0x02 | |
90 | #define SSCOM_HW_DEV_OK 0x04 | 93 | #define SSCOM_HW_DEV_OK 0x04 | |
91 | #define SSCOM_HW_CONSOLE 0x08 | 94 | #define SSCOM_HW_CONSOLE 0x08 |
--- src/sys/arch/arm/samsung/Attic/sscom_var.h 2014/04/16 21:28:51 1.3
+++ src/sys/arch/arm/samsung/Attic/sscom_var.h 2015/04/14 20:32:35 1.4
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: sscom_var.h,v 1.3 2014/04/16 21:28:51 reinoud Exp $ */ | 1 | /* $NetBSD: sscom_var.h,v 1.4 2015/04/14 20:32:35 riastradh Exp $ */ | |
2 | 2 | |||
3 | /* | 3 | /* | |
4 | * Copyright (c) 2002, 2003 Fujitsu Component Limited | 4 | * Copyright (c) 2002, 2003 Fujitsu Component Limited | |
5 | * Copyright (c) 2002, 2003 Genetec Corporation | 5 | * Copyright (c) 2002, 2003 Genetec Corporation | |
6 | * All rights reserved. | 6 | * All rights reserved. | |
7 | * | 7 | * | |
8 | * Redistribution and use in source and binary forms, with or without | 8 | * Redistribution and use in source and binary forms, with or without | |
9 | * modification, are permitted provided that the following conditions | 9 | * modification, are permitted provided that the following conditions | |
10 | * are met: | 10 | * are met: | |
11 | * 1. Redistributions of source code must retain the above copyright | 11 | * 1. Redistributions of source code must retain the above copyright | |
12 | * notice, this list of conditions and the following disclaimer. | 12 | * notice, this list of conditions and the following disclaimer. | |
13 | * 2. Redistributions in binary form must reproduce the above copyright | 13 | * 2. Redistributions in binary form must reproduce the above copyright | |
14 | * notice, this list of conditions and the following disclaimer in the | 14 | * notice, this list of conditions and the following disclaimer in the | |
@@ -66,26 +66,29 @@ | @@ -66,26 +66,29 @@ | |||
66 | #ifndef _ARM_SAMSUNG_SSCOM_VAR_H | 66 | #ifndef _ARM_SAMSUNG_SSCOM_VAR_H | |
67 | #define _ARM_SAMSUNG_SSCOM_VAR_H | 67 | #define _ARM_SAMSUNG_SSCOM_VAR_H | |
68 | 68 | |||
69 | #include "opt_multiprocessor.h" | 69 | #include "opt_multiprocessor.h" | |
70 | #include "opt_lockdebug.h" | 70 | #include "opt_lockdebug.h" | |
71 | #include "opt_sscom.h" | 71 | #include "opt_sscom.h" | |
72 | 72 | |||
73 | #include <sys/param.h> | 73 | #include <sys/param.h> | |
74 | #include <sys/systm.h> | 74 | #include <sys/systm.h> | |
75 | #include <sys/device.h> | 75 | #include <sys/device.h> | |
76 | #include <sys/termios.h> | 76 | #include <sys/termios.h> | |
77 | #include <sys/callout.h> | 77 | #include <sys/callout.h> | |
78 | #include <sys/bus.h> | 78 | #include <sys/bus.h> | |
79 | #ifdef RND_COM | |||
80 | #include <sys/rndsource.h> | |||
81 | #endif | |||
79 | 82 | |||
80 | #include <arm/samsung/sscom_reg.h> | 83 | #include <arm/samsung/sscom_reg.h> | |
81 | 84 | |||
82 | /* Hardware flag masks */ | 85 | /* Hardware flag masks */ | |
83 | #define SSCOM_HW_FLOW 0x02 | 86 | #define SSCOM_HW_FLOW 0x02 | |
84 | #define SSCOM_HW_DEV_OK 0x04 | 87 | #define SSCOM_HW_DEV_OK 0x04 | |
85 | #define SSCOM_HW_CONSOLE 0x08 | 88 | #define SSCOM_HW_CONSOLE 0x08 | |
86 | #define SSCOM_HW_KGDB 0x10 | 89 | #define SSCOM_HW_KGDB 0x10 | |
87 | #define SSCOM_HW_TXINT 0x20 | 90 | #define SSCOM_HW_TXINT 0x20 | |
88 | #define SSCOM_HW_RXINT 0x40 | 91 | #define SSCOM_HW_RXINT 0x40 | |
89 | 92 | |||
90 | /* Buffer size for character buffer */ | 93 | /* Buffer size for character buffer */ | |
91 | #define SSCOM_RING_SIZE 2048 | 94 | #define SSCOM_RING_SIZE 2048 |
--- src/sys/arch/hp300/dev/rdvar.h 2012/02/02 19:42:59 1.22
+++ src/sys/arch/hp300/dev/rdvar.h 2015/04/14 20:32:35 1.23
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: rdvar.h,v 1.22 2012/02/02 19:42:59 tls Exp $ */ | 1 | /* $NetBSD: rdvar.h,v 1.23 2015/04/14 20:32:35 riastradh Exp $ */ | |
2 | 2 | |||
3 | /* | 3 | /* | |
4 | * Copyright (c) 1988 University of Utah. | 4 | * Copyright (c) 1988 University of Utah. | |
5 | * Copyright (c) 1982, 1990, 1993 | 5 | * Copyright (c) 1982, 1990, 1993 | |
6 | * The Regents of the University of California. All rights reserved. | 6 | * The Regents of the University of California. All rights reserved. | |
7 | * | 7 | * | |
8 | * This code is derived from software contributed to Berkeley by | 8 | * This code is derived from software contributed to Berkeley by | |
9 | * the Systems Programming Group of the University of Utah Computer | 9 | * the Systems Programming Group of the University of Utah Computer | |
10 | * Science Department. | 10 | * Science Department. | |
11 | * | 11 | * | |
12 | * Redistribution and use in source and binary forms, with or without | 12 | * Redistribution and use in source and binary forms, with or without | |
13 | * modification, are permitted provided that the following conditions | 13 | * modification, are permitted provided that the following conditions | |
14 | * are met: | 14 | * are met: | |
@@ -29,26 +29,27 @@ | @@ -29,26 +29,27 @@ | |||
29 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | 29 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | |
30 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | 30 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |
31 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | 31 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | |
32 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | 32 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | |
33 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 33 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |
34 | * SUCH DAMAGE. | 34 | * SUCH DAMAGE. | |
35 | * | 35 | * | |
36 | * from: Utah $Hdr: rdvar.h 1.1 92/12/21$ | 36 | * from: Utah $Hdr: rdvar.h 1.1 92/12/21$ | |
37 | * | 37 | * | |
38 | * @(#)rdvar.h 8.1 (Berkeley) 6/10/93 | 38 | * @(#)rdvar.h 8.1 (Berkeley) 6/10/93 | |
39 | */ | 39 | */ | |
40 | 40 | |||
41 | #include <sys/callout.h> | 41 | #include <sys/callout.h> | |
42 | #include <sys/rndsource.h> | |||
42 | 43 | |||
43 | struct rdidentinfo { | 44 | struct rdidentinfo { | |
44 | short ri_hwid; /* 2 byte HW id */ | 45 | short ri_hwid; /* 2 byte HW id */ | |
45 | short ri_maxunum; /* maximum allowed unit number */ | 46 | short ri_maxunum; /* maximum allowed unit number */ | |
46 | const char *ri_desc; /* drive type description */ | 47 | const char *ri_desc; /* drive type description */ | |
47 | int ri_nbpt; /* DEV_BSIZE blocks per track */ | 48 | int ri_nbpt; /* DEV_BSIZE blocks per track */ | |
48 | int ri_ntpc; /* tracks per cylinder */ | 49 | int ri_ntpc; /* tracks per cylinder */ | |
49 | int ri_ncyl; /* cylinders per unit */ | 50 | int ri_ncyl; /* cylinders per unit */ | |
50 | int ri_nblocks; /* DEV_BSIZE blocks on disk */ | 51 | int ri_nblocks; /* DEV_BSIZE blocks on disk */ | |
51 | }; | 52 | }; | |
52 | 53 | |||
53 | struct rdstats { | 54 | struct rdstats { | |
54 | long rdretries; | 55 | long rdretries; |
--- src/sys/arch/xen/include/xbdvar.h 2014/03/20 06:48:54 1.15
+++ src/sys/arch/xen/include/xbdvar.h 2015/04/14 20:32:35 1.16
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: xbdvar.h,v 1.15 2014/03/20 06:48:54 skrll Exp $ */ | 1 | /* $NetBSD: xbdvar.h,v 1.16 2015/04/14 20:32:35 riastradh Exp $ */ | |
2 | 2 | |||
3 | /* | 3 | /* | |
4 | * | 4 | * | |
5 | * Copyright (c) 2004 Christian Limpach. | 5 | * Copyright (c) 2004 Christian Limpach. | |
6 | * All rights reserved. | 6 | * All rights reserved. | |
7 | * | 7 | * | |
8 | * Redistribution and use in source and binary forms, with or without | 8 | * Redistribution and use in source and binary forms, with or without | |
9 | * modification, are permitted provided that the following conditions | 9 | * modification, are permitted provided that the following conditions | |
10 | * are met: | 10 | * are met: | |
11 | * 1. Redistributions of source code must retain the above copyright | 11 | * 1. Redistributions of source code must retain the above copyright | |
12 | * notice, this list of conditions and the following disclaimer. | 12 | * notice, this list of conditions and the following disclaimer. | |
13 | * 2. Redistributions in binary form must reproduce the above copyright | 13 | * 2. Redistributions in binary form must reproduce the above copyright | |
14 | * notice, this list of conditions and the following disclaimer in the | 14 | * notice, this list of conditions and the following disclaimer in the | |
@@ -20,26 +20,28 @@ | @@ -20,26 +20,28 @@ | |||
20 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, | 20 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, | |
21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | 21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | |
22 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 22 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | |
23 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 23 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | |
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
27 | */ | 27 | */ | |
28 | 28 | |||
29 | 29 | |||
30 | #ifndef _XEN_XBDVAR_H_ | 30 | #ifndef _XEN_XBDVAR_H_ | |
31 | #define _XEN_XBDVAR_H_ | 31 | #define _XEN_XBDVAR_H_ | |
32 | 32 | |||
33 | #include <sys/rndsource.h> | |||
34 | ||||
33 | struct xbd_softc { | 35 | struct xbd_softc { | |
34 | device_t sc_dev; /* base device glue */ | 36 | device_t sc_dev; /* base device glue */ | |
35 | struct dk_softc sc_dksc; /* generic disk interface */ | 37 | struct dk_softc sc_dksc; /* generic disk interface */ | |
36 | unsigned long sc_xd_device; /* cookie identifying device */ | 38 | unsigned long sc_xd_device; /* cookie identifying device */ | |
37 | struct dk_intf *sc_di; /* pseudo-disk interface */ | 39 | struct dk_intf *sc_di; /* pseudo-disk interface */ | |
38 | int sc_shutdown; /* about to be removed */ | 40 | int sc_shutdown; /* about to be removed */ | |
39 | krndsource_t sc_rnd_source; | 41 | krndsource_t sc_rnd_source; | |
40 | }; | 42 | }; | |
41 | 43 | |||
42 | struct xbd_attach_args { | 44 | struct xbd_attach_args { | |
43 | const char *xa_device; | 45 | const char *xa_device; | |
44 | vdisk_t *xa_xd; | 46 | vdisk_t *xa_xd; | |
45 | struct dk_intf *xa_dkintf; | 47 | struct dk_intf *xa_dkintf; |
--- src/sys/dev/ic/mb86950var.h 2012/10/27 17:18:21 1.8
+++ src/sys/dev/ic/mb86950var.h 2015/04/14 20:32:35 1.9
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: mb86950var.h,v 1.8 2012/10/27 17:18:21 chs Exp $ */ | 1 | /* $NetBSD: mb86950var.h,v 1.9 2015/04/14 20:32:35 riastradh Exp $ */ | |
2 | 2 | |||
3 | /* | 3 | /* | |
4 | * Copyright (c) 1995 Mika Kortelainen | 4 | * Copyright (c) 1995 Mika Kortelainen | |
5 | * All rights reserved. | 5 | * All rights reserved. | |
6 | * | 6 | * | |
7 | * Redistribution and use in source and binary forms, with or without | 7 | * Redistribution and use in source and binary forms, with or without | |
8 | * modification, are permitted provided that the following conditions | 8 | * modification, are permitted provided that the following conditions | |
9 | * are met: | 9 | * are met: | |
10 | * 1. Redistributions of source code must retain the above copyright | 10 | * 1. Redistributions of source code must retain the above copyright | |
11 | * notice, this list of conditions and the following disclaimer. | 11 | * notice, this list of conditions and the following disclaimer. | |
12 | * 2. Redistributions in binary form must reproduce the above copyright | 12 | * 2. Redistributions in binary form must reproduce the above copyright | |
13 | * notice, this list of conditions and the following disclaimer in the | 13 | * notice, this list of conditions and the following disclaimer in the | |
14 | * documentation and/or other materials provided with the distribution. | 14 | * documentation and/or other materials provided with the distribution. | |
@@ -20,26 +20,28 @@ | @@ -20,26 +20,28 @@ | |||
20 | * | 20 | * | |
21 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | 21 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | |
22 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | 22 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | |
23 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. | 23 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. | |
24 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, | 24 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, | |
25 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | 25 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | |
26 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 26 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | |
27 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 27 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | |
28 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 28 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | |
29 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 29 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | |
30 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 30 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
31 | */ | 31 | */ | |
32 | 32 | |||
33 | #include <sys/rndsource.h> | |||
34 | ||||
33 | /* | 35 | /* | |
34 | * Adapted from if_qnreg.h for the amiga port of NetBSD by Dave J. Barnes, 2004. | 36 | * Adapted from if_qnreg.h for the amiga port of NetBSD by Dave J. Barnes, 2004. | |
35 | */ | 37 | */ | |
36 | 38 | |||
37 | /* | 39 | /* | |
38 | * EStar_softc: per line info and status | 40 | * EStar_softc: per line info and status | |
39 | */ | 41 | */ | |
40 | struct mb86950_softc { | 42 | struct mb86950_softc { | |
41 | device_t sc_dev; | 43 | device_t sc_dev; | |
42 | struct ethercom sc_ec; /* ethernet common */ | 44 | struct ethercom sc_ec; /* ethernet common */ | |
43 | struct ifmedia sc_media; /* supported media information */ | 45 | struct ifmedia sc_media; /* supported media information */ | |
44 | 46 | |||
45 | bus_space_tag_t sc_bst; /* bus space */ | 47 | bus_space_tag_t sc_bst; /* bus space */ |
--- src/sys/dev/marvell/if_gfevar.h 2012/02/02 19:43:04 1.12
+++ src/sys/dev/marvell/if_gfevar.h 2015/04/14 20:32:36 1.13
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: if_gfevar.h,v 1.12 2012/02/02 19:43:04 tls Exp $ */ | 1 | /* $NetBSD: if_gfevar.h,v 1.13 2015/04/14 20:32:36 riastradh Exp $ */ | |
2 | 2 | |||
3 | /* | 3 | /* | |
4 | * Copyright (c) 2002 Allegro Networks, Inc., Wasabi Systems, Inc. | 4 | * Copyright (c) 2002 Allegro Networks, Inc., Wasabi Systems, Inc. | |
5 | * All rights reserved. | 5 | * All rights reserved. | |
6 | * | 6 | * | |
7 | * Redistribution and use in source and binary forms, with or without | 7 | * Redistribution and use in source and binary forms, with or without | |
8 | * modification, are permitted provided that the following conditions | 8 | * modification, are permitted provided that the following conditions | |
9 | * are met: | 9 | * are met: | |
10 | * 1. Redistributions of source code must retain the above copyright | 10 | * 1. Redistributions of source code must retain the above copyright | |
11 | * notice, this list of conditions and the following disclaimer. | 11 | * notice, this list of conditions and the following disclaimer. | |
12 | * 2. Redistributions in binary form must reproduce the above copyright | 12 | * 2. Redistributions in binary form must reproduce the above copyright | |
13 | * notice, this list of conditions and the following disclaimer in the | 13 | * notice, this list of conditions and the following disclaimer in the | |
14 | * documentation and/or other materials provided with the distribution. | 14 | * documentation and/or other materials provided with the distribution. | |
@@ -29,26 +29,28 @@ | @@ -29,26 +29,28 @@ | |||
29 | * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. | 29 | * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. | |
30 | * IN NO EVENT SHALL EITHER ALLEGRO NETWORKS, INC. OR WASABI SYSTEMS, INC. | 30 | * IN NO EVENT SHALL EITHER ALLEGRO NETWORKS, INC. OR WASABI SYSTEMS, INC. | |
31 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | 31 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | |
32 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | 32 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | |
33 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | 33 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | |
34 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | 34 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | |
35 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | 35 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | |
36 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | 36 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | |
37 | * POSSIBILITY OF SUCH DAMAGE. | 37 | * POSSIBILITY OF SUCH DAMAGE. | |
38 | */ | 38 | */ | |
39 | #ifndef _IF_GFEVAR_H_ | 39 | #ifndef _IF_GFEVAR_H_ | |
40 | #define _IF_GFEVAR_H_ | 40 | #define _IF_GFEVAR_H_ | |
41 | 41 | |||
42 | #include <sys/rndsource.h> | |||
43 | ||||
42 | #define GE_RXDESC_MEMSIZE (1 * PAGE_SIZE) | 44 | #define GE_RXDESC_MEMSIZE (1 * PAGE_SIZE) | |
43 | #define GE_RXDESC_MAX 64 | 45 | #define GE_RXDESC_MAX 64 | |
44 | #define GE_RXBUF_SIZE 2048 | 46 | #define GE_RXBUF_SIZE 2048 | |
45 | #define GE_RXBUF_MEMSIZE (GE_RXDESC_MAX*GE_RXBUF_SIZE) | 47 | #define GE_RXBUF_MEMSIZE (GE_RXDESC_MAX*GE_RXBUF_SIZE) | |
46 | #define GE_RXBUF_NSEGS ((GE_RXBUF_MEMSIZE/PAGE_SIZE)+1) | 48 | #define GE_RXBUF_NSEGS ((GE_RXBUF_MEMSIZE/PAGE_SIZE)+1) | |
47 | #define GE_DMSEG_MAX (GE_RXBUF_NSEGS) | 49 | #define GE_DMSEG_MAX (GE_RXBUF_NSEGS) | |
48 | 50 | |||
49 | struct gfe_dmamem { | 51 | struct gfe_dmamem { | |
50 | bus_dmamap_t gdm_map; /* dmamem'ed memory */ | 52 | bus_dmamap_t gdm_map; /* dmamem'ed memory */ | |
51 | void *gdm_kva; /* kva of tx memory */ | 53 | void *gdm_kva; /* kva of tx memory */ | |
52 | int gdm_nsegs; /* # of segment in gdm_segs */ | 54 | int gdm_nsegs; /* # of segment in gdm_segs */ | |
53 | int gdm_maxsegs; /* maximum # of segments allowed */ | 55 | int gdm_maxsegs; /* maximum # of segments allowed */ | |
54 | size_t gdm_size; /* size of memory region */ | 56 | size_t gdm_size; /* size of memory region */ |
--- src/sys/dev/mca/edvar.h 2014/03/20 06:48:54 1.17
+++ src/sys/dev/mca/edvar.h 2015/04/14 20:32:36 1.18
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: edvar.h,v 1.17 2014/03/20 06:48:54 skrll Exp $ */ | 1 | /* $NetBSD: edvar.h,v 1.18 2015/04/14 20:32:36 riastradh Exp $ */ | |
2 | 2 | |||
3 | /* | 3 | /* | |
4 | * Copyright (c) 2001 The NetBSD Foundation, Inc. | 4 | * Copyright (c) 2001 The NetBSD Foundation, Inc. | |
5 | * All rights reserved. | 5 | * All rights reserved. | |
6 | * | 6 | * | |
7 | * This code is derived from software contributed to The NetBSD Foundation | 7 | * This code is derived from software contributed to The NetBSD Foundation | |
8 | * by Jaromir Dolecek. | 8 | * by Jaromir Dolecek. | |
9 | * | 9 | * | |
10 | * Redistribution and use in source and binary forms, with or without | 10 | * Redistribution and use in source and binary forms, with or without | |
11 | * modification, are permitted provided that the following conditions | 11 | * modification, are permitted provided that the following conditions | |
12 | * are met: | 12 | * are met: | |
13 | * 1. Redistributions of source code must retain the above copyright | 13 | * 1. Redistributions of source code must retain the above copyright | |
14 | * notice, this list of conditions and the following disclaimer. | 14 | * notice, this list of conditions and the following disclaimer. | |
@@ -20,26 +20,27 @@ | @@ -20,26 +20,27 @@ | |||
20 | * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED | 20 | * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED | |
21 | * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | 21 | * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | |
22 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS | 22 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS | |
23 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | 23 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | |
24 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | 24 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | |
25 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | 25 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | |
26 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | 26 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | |
27 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | 27 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | |
28 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | 28 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | |
29 | * POSSIBILITY OF SUCH DAMAGE. | 29 | * POSSIBILITY OF SUCH DAMAGE. | |
30 | */ | 30 | */ | |
31 | 31 | |||
32 | #include <sys/mutex.h> | 32 | #include <sys/mutex.h> | |
33 | #include <sys/rndsource.h> | |||
33 | 34 | |||
34 | struct edc_mca_softc; | 35 | struct edc_mca_softc; | |
35 | 36 | |||
36 | struct ed_softc { | 37 | struct ed_softc { | |
37 | device_t sc_dev; | 38 | device_t sc_dev; | |
38 | 39 | |||
39 | /* General disk infos */ | 40 | /* General disk infos */ | |
40 | struct disk sc_dk; | 41 | struct disk sc_dk; | |
41 | struct bufq_state *sc_q; | 42 | struct bufq_state *sc_q; | |
42 | kmutex_t sc_q_lock; | 43 | kmutex_t sc_q_lock; | |
43 | 44 | |||
44 | struct edc_mca_softc *edc_softc; /* pointer to our controller */ | 45 | struct edc_mca_softc *edc_softc; /* pointer to our controller */ | |
45 | 46 |
--- src/sys/dev/pci/hifn7751var.h 2014/01/03 16:09:22 1.11
+++ src/sys/dev/pci/hifn7751var.h 2015/04/14 20:32:36 1.12
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: hifn7751var.h,v 1.11 2014/01/03 16:09:22 pgoyette Exp $ */ | 1 | /* $NetBSD: hifn7751var.h,v 1.12 2015/04/14 20:32:36 riastradh Exp $ */ | |
2 | /* $OpenBSD: hifn7751var.h,v 1.18 2000/06/02 22:36:45 deraadt Exp $ */ | 2 | /* $OpenBSD: hifn7751var.h,v 1.18 2000/06/02 22:36:45 deraadt Exp $ */ | |
3 | 3 | |||
4 | /* | 4 | /* | |
5 | * Invertex AEON / Hifn 7751 driver | 5 | * Invertex AEON / Hifn 7751 driver | |
6 | * Copyright (c) 1999 Invertex Inc. All rights reserved. | 6 | * Copyright (c) 1999 Invertex Inc. All rights reserved. | |
7 | * Copyright (c) 1999 Theo de Raadt | 7 | * Copyright (c) 1999 Theo de Raadt | |
8 | * Copyright (c) 2000-2001 Network Security Technologies, Inc. | 8 | * Copyright (c) 2000-2001 Network Security Technologies, Inc. | |
9 | * http://www.netsec.net | 9 | * http://www.netsec.net | |
10 | * | 10 | * | |
11 | * Please send any comments, feedback, bug-fixes, or feature requests to | 11 | * Please send any comments, feedback, bug-fixes, or feature requests to | |
12 | * software@invertex.com. | 12 | * software@invertex.com. | |
13 | * | 13 | * | |
14 | * Redistribution and use in source and binary forms, with or without | 14 | * Redistribution and use in source and binary forms, with or without | |
@@ -35,26 +35,28 @@ | @@ -35,26 +35,28 @@ | |||
35 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 35 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
36 | * | 36 | * | |
37 | * Effort sponsored in part by the Defense Advanced Research Projects | 37 | * Effort sponsored in part by the Defense Advanced Research Projects | |
38 | * Agency (DARPA) and Air Force Research Laboratory, Air Force | 38 | * Agency (DARPA) and Air Force Research Laboratory, Air Force | |
39 | * Materiel Command, USAF, under agreement number F30602-01-2-0537. | 39 | * Materiel Command, USAF, under agreement number F30602-01-2-0537. | |
40 | * | 40 | * | |
41 | */ | 41 | */ | |
42 | 42 | |||
43 | #ifndef __DEV_PCI_HIFN7751VAR_H__ | 43 | #ifndef __DEV_PCI_HIFN7751VAR_H__ | |
44 | #define __DEV_PCI_HIFN7751VAR_H__ | 44 | #define __DEV_PCI_HIFN7751VAR_H__ | |
45 | 45 | |||
46 | #ifdef _KERNEL | 46 | #ifdef _KERNEL | |
47 | 47 | |||
48 | #include <sys/rndsource.h> | |||
49 | ||||
48 | /* | 50 | /* | |
49 | * Some configurable values for the driver | 51 | * Some configurable values for the driver | |
50 | */ | 52 | */ | |
51 | #define HIFN_D_CMD_RSIZE 24 /* command descriptors */ | 53 | #define HIFN_D_CMD_RSIZE 24 /* command descriptors */ | |
52 | #define HIFN_D_SRC_RSIZE 80 /* source descriptors */ | 54 | #define HIFN_D_SRC_RSIZE 80 /* source descriptors */ | |
53 | #define HIFN_D_DST_RSIZE 80 /* destination descriptors */ | 55 | #define HIFN_D_DST_RSIZE 80 /* destination descriptors */ | |
54 | #define HIFN_D_RES_RSIZE 24 /* result descriptors */ | 56 | #define HIFN_D_RES_RSIZE 24 /* result descriptors */ | |
55 | 57 | |||
56 | /* | 58 | /* | |
57 | * Length values for cryptography | 59 | * Length values for cryptography | |
58 | */ | 60 | */ | |
59 | #define HIFN_DES_KEY_LENGTH 8 | 61 | #define HIFN_DES_KEY_LENGTH 8 | |
60 | #define HIFN_3DES_KEY_LENGTH 24 | 62 | #define HIFN_3DES_KEY_LENGTH 24 |
--- src/sys/dev/pci/if_bgevar.h 2013/10/31 04:26:40 1.17
+++ src/sys/dev/pci/if_bgevar.h 2015/04/14 20:32:36 1.18
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: if_bgevar.h,v 1.17 2013/10/31 04:26:40 msaitoh Exp $ */ | 1 | /* $NetBSD: if_bgevar.h,v 1.18 2015/04/14 20:32:36 riastradh Exp $ */ | |
2 | /* | 2 | /* | |
3 | * Copyright (c) 2001 Wind River Systems | 3 | * Copyright (c) 2001 Wind River Systems | |
4 | * Copyright (c) 1997, 1998, 1999, 2001 | 4 | * Copyright (c) 1997, 1998, 1999, 2001 | |
5 | * Bill Paul <wpaul@windriver.com>. All rights reserved. | 5 | * Bill Paul <wpaul@windriver.com>. All rights reserved. | |
6 | * | 6 | * | |
7 | * Redistribution and use in source and binary forms, with or without | 7 | * Redistribution and use in source and binary forms, with or without | |
8 | * modification, are permitted provided that the following conditions | 8 | * modification, are permitted provided that the following conditions | |
9 | * are met: | 9 | * are met: | |
10 | * 1. Redistributions of source code must retain the above copyright | 10 | * 1. Redistributions of source code must retain the above copyright | |
11 | * notice, this list of conditions and the following disclaimer. | 11 | * notice, this list of conditions and the following disclaimer. | |
12 | * 2. Redistributions in binary form must reproduce the above copyright | 12 | * 2. Redistributions in binary form must reproduce the above copyright | |
13 | * notice, this list of conditions and the following disclaimer in the | 13 | * notice, this list of conditions and the following disclaimer in the | |
14 | * documentation and/or other materials provided with the distribution. | 14 | * documentation and/or other materials provided with the distribution. | |
@@ -57,26 +57,27 @@ | @@ -57,26 +57,27 @@ | |||
57 | * | 57 | * | |
58 | * 3) Flat mode. If the 'flat mode' bit in the PCI state register is | 58 | * 3) Flat mode. If the 'flat mode' bit in the PCI state register is | |
59 | * set, the device I/O mapping consumes 32MB of host address space, | 59 | * set, the device I/O mapping consumes 32MB of host address space, | |
60 | * allowing all of the registers and internal NIC memory to be | 60 | * allowing all of the registers and internal NIC memory to be | |
61 | * accessed directly. NIC memory addresses are offset by 0x01000000. | 61 | * accessed directly. NIC memory addresses are offset by 0x01000000. | |
62 | * Flat mode consumes so much host address space that it is not | 62 | * Flat mode consumes so much host address space that it is not | |
63 | * recommended. | 63 | * recommended. | |
64 | */ | 64 | */ | |
65 | 65 | |||
66 | #ifndef _DEV_PCI_IF_BGEVAR_H_ | 66 | #ifndef _DEV_PCI_IF_BGEVAR_H_ | |
67 | #define _DEV_PCI_IF_BGEVAR_H_ | 67 | #define _DEV_PCI_IF_BGEVAR_H_ | |
68 | 68 | |||
69 | #include <sys/bus.h> | 69 | #include <sys/bus.h> | |
70 | #include <sys/rndsource.h> | |||
70 | #include <net/if_ether.h> | 71 | #include <net/if_ether.h> | |
71 | #include <dev/pci/pcivar.h> | 72 | #include <dev/pci/pcivar.h> | |
72 | 73 | |||
73 | #define BGE_HOSTADDR(x, y) \ | 74 | #define BGE_HOSTADDR(x, y) \ | |
74 | do { \ | 75 | do { \ | |
75 | (x).bge_addr_lo = ((uint64_t) (y) & 0xffffffff); \ | 76 | (x).bge_addr_lo = ((uint64_t) (y) & 0xffffffff); \ | |
76 | if (sizeof (bus_addr_t) == 8) \ | 77 | if (sizeof (bus_addr_t) == 8) \ | |
77 | (x).bge_addr_hi = ((uint64_t) (y) >> 32); \ | 78 | (x).bge_addr_hi = ((uint64_t) (y) >> 32); \ | |
78 | else \ | 79 | else \ | |
79 | (x).bge_addr_hi = 0; \ | 80 | (x).bge_addr_hi = 0; \ | |
80 | } while(0) | 81 | } while(0) | |
81 | 82 | |||
82 | #define RCB_WRITE_4(sc, rcb, offset, val) \ | 83 | #define RCB_WRITE_4(sc, rcb, offset, val) \ |
--- src/sys/dev/pci/if_casvar.h 2012/02/02 19:43:05 1.4
+++ src/sys/dev/pci/if_casvar.h 2015/04/14 20:32:36 1.5
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: if_casvar.h,v 1.4 2012/02/02 19:43:05 tls Exp $ */ | 1 | /* $NetBSD: if_casvar.h,v 1.5 2015/04/14 20:32:36 riastradh Exp $ */ | |
2 | /* $OpenBSD: if_casvar.h,v 1.6 2009/06/13 12:18:58 kettenis Exp $ */ | 2 | /* $OpenBSD: if_casvar.h,v 1.6 2009/06/13 12:18:58 kettenis Exp $ */ | |
3 | 3 | |||
4 | /* | 4 | /* | |
5 | * | 5 | * | |
6 | * Copyright (C) 2007 Mark Kettenis. | 6 | * Copyright (C) 2007 Mark Kettenis. | |
7 | * Copyright (C) 2001 Eduardo Horvath. | 7 | * Copyright (C) 2001 Eduardo Horvath. | |
8 | * All rights reserved. | 8 | * All rights reserved. | |
9 | * | 9 | * | |
10 | * | 10 | * | |
11 | * Redistribution and use in source and binary forms, with or without | 11 | * Redistribution and use in source and binary forms, with or without | |
12 | * modification, are permitted provided that the following conditions | 12 | * modification, are permitted provided that the following conditions | |
13 | * are met: | 13 | * are met: | |
14 | * 1. Redistributions of source code must retain the above copyright | 14 | * 1. Redistributions of source code must retain the above copyright | |
@@ -26,26 +26,27 @@ | @@ -26,26 +26,27 @@ | |||
26 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | 26 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |
27 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | 27 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | |
28 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | 28 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | |
29 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 29 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |
30 | * SUCH DAMAGE. | 30 | * SUCH DAMAGE. | |
31 | * | 31 | * | |
32 | */ | 32 | */ | |
33 | 33 | |||
34 | #ifndef _IF_CASVAR_H | 34 | #ifndef _IF_CASVAR_H | |
35 | #define _IF_CASVAR_H | 35 | #define _IF_CASVAR_H | |
36 | 36 | |||
37 | #include <sys/queue.h> | 37 | #include <sys/queue.h> | |
38 | #include <sys/callout.h> | 38 | #include <sys/callout.h> | |
39 | #include <sys/rndsource.h> | |||
39 | 40 | |||
40 | /* | 41 | /* | |
41 | * Misc. definitions for Sun Cassini ethernet controllers. | 42 | * Misc. definitions for Sun Cassini ethernet controllers. | |
42 | */ | 43 | */ | |
43 | 44 | |||
44 | /* | 45 | /* | |
45 | * Preferred page size. Cassini has a configurable page size, but | 46 | * Preferred page size. Cassini has a configurable page size, but | |
46 | * needs at least 8k to handle jumbo frames. This happens to be the | 47 | * needs at least 8k to handle jumbo frames. This happens to be the | |
47 | * default anyway. | 48 | * default anyway. | |
48 | */ | 49 | */ | |
49 | #define CAS_PAGE_SIZE 8192 | 50 | #define CAS_PAGE_SIZE 8192 | |
50 | 51 | |||
51 | /* | 52 | /* |
--- src/sys/dev/pci/if_vtevar.h 2012/02/02 19:43:05 1.3
+++ src/sys/dev/pci/if_vtevar.h 2015/04/14 20:32:36 1.4
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: if_vtevar.h,v 1.3 2012/02/02 19:43:05 tls Exp $ */ | 1 | /* $NetBSD: if_vtevar.h,v 1.4 2015/04/14 20:32:36 riastradh Exp $ */ | |
2 | 2 | |||
3 | /*- | 3 | /*- | |
4 | * Copyright (c) 2010, Pyun YongHyeon <yongari@FreeBSD.org> | 4 | * Copyright (c) 2010, Pyun YongHyeon <yongari@FreeBSD.org> | |
5 | * All rights reserved. | 5 | * All rights reserved. | |
6 | * | 6 | * | |
7 | * Redistribution and use in source and binary forms, with or without | 7 | * Redistribution and use in source and binary forms, with or without | |
8 | * modification, are permitted provided that the following conditions | 8 | * modification, are permitted provided that the following conditions | |
9 | * are met: | 9 | * are met: | |
10 | * 1. Redistributions of source code must retain the above copyright | 10 | * 1. Redistributions of source code must retain the above copyright | |
11 | * notice unmodified, this list of conditions, and the following | 11 | * notice unmodified, this list of conditions, and the following | |
12 | * disclaimer. | 12 | * disclaimer. | |
13 | * 2. Redistributions in binary form must reproduce the above copyright | 13 | * 2. Redistributions in binary form must reproduce the above copyright | |
14 | * notice, this list of conditions and the following disclaimer in the | 14 | * notice, this list of conditions and the following disclaimer in the | |
@@ -22,26 +22,28 @@ | @@ -22,26 +22,28 @@ | |||
22 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | 22 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | |
23 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | 23 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |
24 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | 24 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | |
25 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | 25 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | |
26 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 26 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |
27 | * SUCH DAMAGE. | 27 | * SUCH DAMAGE. | |
28 | * | 28 | * | |
29 | * FreeBSD: src/sys/dev/vte/if_vtevar.h,v 1.1 2010/12/31 00:21:41 yongari Exp | 29 | * FreeBSD: src/sys/dev/vte/if_vtevar.h,v 1.1 2010/12/31 00:21:41 yongari Exp | |
30 | */ | 30 | */ | |
31 | 31 | |||
32 | #ifndef _IF_VTEVAR_H | 32 | #ifndef _IF_VTEVAR_H | |
33 | #define _IF_VTEVAR_H | 33 | #define _IF_VTEVAR_H | |
34 | 34 | |||
35 | #include <sys/rndsource.h> | |||
36 | ||||
35 | #define VTE_TX_RING_CNT 64 | 37 | #define VTE_TX_RING_CNT 64 | |
36 | #define VTE_TX_RING_ALIGN 16 | 38 | #define VTE_TX_RING_ALIGN 16 | |
37 | /* | 39 | /* | |
38 | * The TX/RX descriptor format has no limitation for number of | 40 | * The TX/RX descriptor format has no limitation for number of | |
39 | * descriptors in TX/RX ring. However, the maximum number of | 41 | * descriptors in TX/RX ring. However, the maximum number of | |
40 | * descriptors that could be set as RX descriptor ring residue | 42 | * descriptors that could be set as RX descriptor ring residue | |
41 | * counter is 255. This effectively limits number of RX | 43 | * counter is 255. This effectively limits number of RX | |
42 | * descriptors available to be less than or equal to 255. | 44 | * descriptors available to be less than or equal to 255. | |
43 | */ | 45 | */ | |
44 | #define VTE_RX_RING_CNT 128 | 46 | #define VTE_RX_RING_CNT 128 | |
45 | #define VTE_RX_RING_ALIGN 16 | 47 | #define VTE_RX_RING_ALIGN 16 | |
46 | #define VTE_RX_BUF_ALIGN 4 | 48 | #define VTE_RX_BUF_ALIGN 4 | |
47 | 49 |
--- src/sys/dev/scsipi/cdvar.h 2012/02/02 19:43:06 1.31
+++ src/sys/dev/scsipi/cdvar.h 2015/04/14 20:32:36 1.32
@@ -1,39 +1,41 @@ | @@ -1,39 +1,41 @@ | |||
1 | /* $NetBSD: cdvar.h,v 1.31 2012/02/02 19:43:06 tls Exp $ */ | 1 | /* $NetBSD: cdvar.h,v 1.32 2015/04/14 20:32:36 riastradh Exp $ */ | |
2 | 2 | |||
3 | /* | 3 | /* | |
4 | * Copyright (c) 1997 Manuel Bouyer. All rights reserved. | 4 | * Copyright (c) 1997 Manuel Bouyer. All rights reserved. | |
5 | * | 5 | * | |
6 | * Redistribution and use in source and binary forms, with or without | 6 | * Redistribution and use in source and binary forms, with or without | |
7 | * modification, are permitted provided that the following conditions | 7 | * modification, are permitted provided that the following conditions | |
8 | * are met: | 8 | * are met: | |
9 | * 1. Redistributions of source code must retain the above copyright | 9 | * 1. Redistributions of source code must retain the above copyright | |
10 | * notice, this list of conditions and the following disclaimer. | 10 | * notice, this list of conditions and the following disclaimer. | |
11 | * 2. Redistributions in binary form must reproduce the above copyright | 11 | * 2. Redistributions in binary form must reproduce the above copyright | |
12 | * notice, this list of conditions and the following disclaimer in the | 12 | * notice, this list of conditions and the following disclaimer in the | |
13 | * documentation and/or other materials provided with the distribution. | 13 | * documentation and/or other materials provided with the distribution. | |
14 | * | 14 | * | |
15 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | 15 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | |
16 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | 16 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | |
17 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. | 17 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. | |
18 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, | 18 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, | |
19 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | 19 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | |
20 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 20 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | |
21 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 21 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | |
22 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 22 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | |
23 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 23 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | |
24 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
25 | */ | 25 | */ | |
26 | 26 | |||
27 | #include <sys/rndsource.h> | |||
28 | ||||
27 | #define CDRETRIES 4 | 29 | #define CDRETRIES 4 | |
28 | 30 | |||
29 | struct cd_softc { | 31 | struct cd_softc { | |
30 | device_t sc_dev; | 32 | device_t sc_dev; | |
31 | struct disk sc_dk; | 33 | struct disk sc_dk; | |
32 | kmutex_t sc_lock; | 34 | kmutex_t sc_lock; | |
33 | 35 | |||
34 | int flags; | 36 | int flags; | |
35 | #define CDF_WLABEL 0x04 /* label is writable */ | 37 | #define CDF_WLABEL 0x04 /* label is writable */ | |
36 | #define CDF_LABELLING 0x08 /* writing label */ | 38 | #define CDF_LABELLING 0x08 /* writing label */ | |
37 | #define CDF_ANCIENT 0x10 /* disk is ancient; for minphys */ | 39 | #define CDF_ANCIENT 0x10 /* disk is ancient; for minphys */ | |
38 | 40 | |||
39 | struct scsipi_periph *sc_periph; | 41 | struct scsipi_periph *sc_periph; |
--- src/sys/dev/usb/if_auereg.h 2012/02/02 19:43:07 1.25
+++ src/sys/dev/usb/if_auereg.h 2015/04/14 20:32:36 1.26
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: if_auereg.h,v 1.25 2012/02/02 19:43:07 tls Exp $ */ | 1 | /* $NetBSD: if_auereg.h,v 1.26 2015/04/14 20:32:36 riastradh Exp $ */ | |
2 | /* | 2 | /* | |
3 | * Copyright (c) 1997, 1998, 1999 | 3 | * Copyright (c) 1997, 1998, 1999 | |
4 | * Bill Paul <wpaul@ee.columbia.edu>. All rights reserved. | 4 | * Bill Paul <wpaul@ee.columbia.edu>. All rights reserved. | |
5 | * | 5 | * | |
6 | * Redistribution and use in source and binary forms, with or without | 6 | * Redistribution and use in source and binary forms, with or without | |
7 | * modification, are permitted provided that the following conditions | 7 | * modification, are permitted provided that the following conditions | |
8 | * are met: | 8 | * are met: | |
9 | * 1. Redistributions of source code must retain the above copyright | 9 | * 1. Redistributions of source code must retain the above copyright | |
10 | * notice, this list of conditions and the following disclaimer. | 10 | * notice, this list of conditions and the following disclaimer. | |
11 | * 2. Redistributions in binary form must reproduce the above copyright | 11 | * 2. Redistributions in binary form must reproduce the above copyright | |
12 | * notice, this list of conditions and the following disclaimer in the | 12 | * notice, this list of conditions and the following disclaimer in the | |
13 | * documentation and/or other materials provided with the distribution. | 13 | * documentation and/or other materials provided with the distribution. | |
14 | * 3. All advertising materials mentioning features or use of this software | 14 | * 3. All advertising materials mentioning features or use of this software | |
@@ -37,26 +37,28 @@ | @@ -37,26 +37,28 @@ | |||
37 | * Register definitions for ADMtek Pegasus AN986 USB to Ethernet | 37 | * Register definitions for ADMtek Pegasus AN986 USB to Ethernet | |
38 | * chip. The Pegasus uses a total of four USB endpoints: the control | 38 | * chip. The Pegasus uses a total of four USB endpoints: the control | |
39 | * endpoint (0), a bulk read endpoint for receiving packets (1), | 39 | * endpoint (0), a bulk read endpoint for receiving packets (1), | |
40 | * a bulk write endpoint for sending packets (2) and an interrupt | 40 | * a bulk write endpoint for sending packets (2) and an interrupt | |
41 | * endpoint for passing RX and TX status (3). Endpoint 0 is used | 41 | * endpoint for passing RX and TX status (3). Endpoint 0 is used | |
42 | * to read and write the ethernet module's registers. All registers | 42 | * to read and write the ethernet module's registers. All registers | |
43 | * are 8 bits wide. | 43 | * are 8 bits wide. | |
44 | * | 44 | * | |
45 | * Packet transfer is done in 64 byte chunks. The last chunk in a | 45 | * Packet transfer is done in 64 byte chunks. The last chunk in a | |
46 | * transfer is denoted by having a length less that 64 bytes. For | 46 | * transfer is denoted by having a length less that 64 bytes. For | |
47 | * the RX case, the data includes an optional RX status word. | 47 | * the RX case, the data includes an optional RX status word. | |
48 | */ | 48 | */ | |
49 | 49 | |||
50 | #include <sys/rndsource.h> | |||
51 | ||||
50 | #define AUE_UR_READREG 0xF0 | 52 | #define AUE_UR_READREG 0xF0 | |
51 | #define AUE_UR_WRITEREG 0xF1 | 53 | #define AUE_UR_WRITEREG 0xF1 | |
52 | 54 | |||
53 | #define AUE_CONFIG_NO 1 | 55 | #define AUE_CONFIG_NO 1 | |
54 | #define AUE_IFACE_IDX 0 | 56 | #define AUE_IFACE_IDX 0 | |
55 | 57 | |||
56 | /* | 58 | /* | |
57 | * Note that while the ADMtek technically has four | 59 | * Note that while the ADMtek technically has four | |
58 | * endpoints, the control endpoint (endpoint 0) is | 60 | * endpoints, the control endpoint (endpoint 0) is | |
59 | * regarded as special by the USB code and drivers | 61 | * regarded as special by the USB code and drivers | |
60 | * don't have direct access to it. (We access it | 62 | * don't have direct access to it. (We access it | |
61 | * using usbd_do_request() when reading/writing | 63 | * using usbd_do_request() when reading/writing | |
62 | * registers.) Consequently, our endpoint indexes | 64 | * registers.) Consequently, our endpoint indexes |
--- src/sys/dev/usb/if_axenreg.h 2013/10/26 09:16:20 1.1
+++ src/sys/dev/usb/if_axenreg.h 2015/04/14 20:32:36 1.2
@@ -1,21 +1,23 @@ | @@ -1,21 +1,23 @@ | |||
1 | /* $NetBSD: if_axenreg.h,v 1.1 2013/10/26 09:16:20 nonaka Exp $ */ | 1 | /* $NetBSD: if_axenreg.h,v 1.2 2015/04/14 20:32:36 riastradh Exp $ */ | |
2 | /* $OpenBSD: if_axenreg.h,v 1.1 2013/10/07 05:37:41 yuo Exp $ */ | 2 | /* $OpenBSD: if_axenreg.h,v 1.1 2013/10/07 05:37:41 yuo Exp $ */ | |
3 | 3 | |||
4 | /* | 4 | /* | |
5 | * Copyright (c) 2013 Yojiro UO <yuo@openbsd.org>. All right reserved. | 5 | * Copyright (c) 2013 Yojiro UO <yuo@openbsd.org>. All right reserved. | |
6 | * | 6 | * | |
7 | */ | 7 | */ | |
8 | 8 | |||
9 | #include <sys/rndsource.h> | |||
10 | ||||
9 | /* | 11 | /* | |
10 | * Definitions for the ASIX Electronics AX88179 to ethernet controller. | 12 | * Definitions for the ASIX Electronics AX88179 to ethernet controller. | |
11 | */ | 13 | */ | |
12 | 14 | |||
13 | #define AXEN_PHY_ID 0x0003 | 15 | #define AXEN_PHY_ID 0x0003 | |
14 | #define AXEN_MCAST_FILTER_SIZE 8 | 16 | #define AXEN_MCAST_FILTER_SIZE 8 | |
15 | /* unit: KB */ | 17 | /* unit: KB */ | |
16 | #define AXEN_BUFSZ_LS 8 | 18 | #define AXEN_BUFSZ_LS 8 | |
17 | #define AXEN_BUFSZ_HS 16 | 19 | #define AXEN_BUFSZ_HS 16 | |
18 | #define AXEN_BUFSZ_SS 24 | 20 | #define AXEN_BUFSZ_SS 24 | |
19 | 21 | |||
20 | #define AXEN_REV_UA1 0 | 22 | #define AXEN_REV_UA1 0 | |
21 | #define AXEN_REV_UA2 1 | 23 | #define AXEN_REV_UA2 1 |
--- src/sys/dev/usb/if_axereg.h 2013/11/08 17:46:35 1.16
+++ src/sys/dev/usb/if_axereg.h 2015/04/14 20:32:36 1.17
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: if_axereg.h,v 1.16 2013/11/08 17:46:35 roy Exp $ */ | 1 | /* $NetBSD: if_axereg.h,v 1.17 2015/04/14 20:32:36 riastradh Exp $ */ | |
2 | 2 | |||
3 | /* | 3 | /* | |
4 | * Copyright (c) 1997, 1998, 1999, 2000-2003 | 4 | * Copyright (c) 1997, 1998, 1999, 2000-2003 | |
5 | * Bill Paul <wpaul@windriver.com>. All rights reserved. | 5 | * Bill Paul <wpaul@windriver.com>. All rights reserved. | |
6 | * | 6 | * | |
7 | * Redistribution and use in source and binary forms, with or without | 7 | * Redistribution and use in source and binary forms, with or without | |
8 | * modification, are permitted provided that the following conditions | 8 | * modification, are permitted provided that the following conditions | |
9 | * are met: | 9 | * are met: | |
10 | * 1. Redistributions of source code must retain the above copyright | 10 | * 1. Redistributions of source code must retain the above copyright | |
11 | * notice, this list of conditions and the following disclaimer. | 11 | * notice, this list of conditions and the following disclaimer. | |
12 | * 2. Redistributions in binary form must reproduce the above copyright | 12 | * 2. Redistributions in binary form must reproduce the above copyright | |
13 | * notice, this list of conditions and the following disclaimer in the | 13 | * notice, this list of conditions and the following disclaimer in the | |
14 | * documentation and/or other materials provided with the distribution. | 14 | * documentation and/or other materials provided with the distribution. | |
@@ -28,26 +28,27 @@ | @@ -28,26 +28,27 @@ | |||
28 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | 28 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | |
29 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | 29 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | |
30 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | 30 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | |
31 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF | 31 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF | |
32 | * THE POSSIBILITY OF SUCH DAMAGE. | 32 | * THE POSSIBILITY OF SUCH DAMAGE. | |
33 | * | 33 | * | |
34 | * $FreeBSD: src/sys/dev/usb/if_axereg.h,v 1.2 2003/06/15 21:45:43 wpaul Exp $ | 34 | * $FreeBSD: src/sys/dev/usb/if_axereg.h,v 1.2 2003/06/15 21:45:43 wpaul Exp $ | |
35 | */ | 35 | */ | |
36 | 36 | |||
37 | /* | 37 | /* | |
38 | * Definitions for the ASIX Electronics AX88172 to ethernet controller. | 38 | * Definitions for the ASIX Electronics AX88172 to ethernet controller. | |
39 | */ | 39 | */ | |
40 | 40 | |||
41 | #include <sys/rndsource.h> | |||
41 | 42 | |||
42 | /* | 43 | /* | |
43 | * Vendor specific commands | 44 | * Vendor specific commands | |
44 | * ASIX conveniently doesn't document the 'set NODEID' command in their | 45 | * ASIX conveniently doesn't document the 'set NODEID' command in their | |
45 | * datasheet (thanks a lot guys). | 46 | * datasheet (thanks a lot guys). | |
46 | * To make handling these commands easier, I added some extra data | 47 | * To make handling these commands easier, I added some extra data | |
47 | * which is decided by the axe_cmd() routine. Commands are encoded | 48 | * which is decided by the axe_cmd() routine. Commands are encoded | |
48 | * in 16 bites, with the format: LDCC. L and D are both nibbles in | 49 | * in 16 bites, with the format: LDCC. L and D are both nibbles in | |
49 | * the high byte. L represents the data length (0 to 15) and D | 50 | * the high byte. L represents the data length (0 to 15) and D | |
50 | * represents the direction (0 for vendor read, 1 for vendor write). | 51 | * represents the direction (0 for vendor read, 1 for vendor write). | |
51 | * CC is the command byte, as specified in the manual. | 52 | * CC is the command byte, as specified in the manual. | |
52 | */ | 53 | */ | |
53 | 54 |
--- src/sys/dev/usb/if_kuereg.h 2012/02/02 19:43:07 1.18
+++ src/sys/dev/usb/if_kuereg.h 2015/04/14 20:32:36 1.19
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: if_kuereg.h,v 1.18 2012/02/02 19:43:07 tls Exp $ */ | 1 | /* $NetBSD: if_kuereg.h,v 1.19 2015/04/14 20:32:36 riastradh Exp $ */ | |
2 | /* | 2 | /* | |
3 | * Copyright (c) 1997, 1998, 1999, 2000 | 3 | * Copyright (c) 1997, 1998, 1999, 2000 | |
4 | * Bill Paul <wpaul@ee.columbia.edu>. All rights reserved. | 4 | * Bill Paul <wpaul@ee.columbia.edu>. All rights reserved. | |
5 | * | 5 | * | |
6 | * Redistribution and use in source and binary forms, with or without | 6 | * Redistribution and use in source and binary forms, with or without | |
7 | * modification, are permitted provided that the following conditions | 7 | * modification, are permitted provided that the following conditions | |
8 | * are met: | 8 | * are met: | |
9 | * 1. Redistributions of source code must retain the above copyright | 9 | * 1. Redistributions of source code must retain the above copyright | |
10 | * notice, this list of conditions and the following disclaimer. | 10 | * notice, this list of conditions and the following disclaimer. | |
11 | * 2. Redistributions in binary form must reproduce the above copyright | 11 | * 2. Redistributions in binary form must reproduce the above copyright | |
12 | * notice, this list of conditions and the following disclaimer in the | 12 | * notice, this list of conditions and the following disclaimer in the | |
13 | * documentation and/or other materials provided with the distribution. | 13 | * documentation and/or other materials provided with the distribution. | |
14 | * 3. All advertising materials mentioning features or use of this software | 14 | * 3. All advertising materials mentioning features or use of this software | |
@@ -31,26 +31,28 @@ | @@ -31,26 +31,28 @@ | |||
31 | * THE POSSIBILITY OF SUCH DAMAGE. | 31 | * THE POSSIBILITY OF SUCH DAMAGE. | |
32 | * | 32 | * | |
33 | * $FreeBSD: src/sys/dev/usb/if_kuereg.h,v 1.2 2000/01/06 07:39:07 wpaul Exp $ | 33 | * $FreeBSD: src/sys/dev/usb/if_kuereg.h,v 1.2 2000/01/06 07:39:07 wpaul Exp $ | |
34 | */ | 34 | */ | |
35 | 35 | |||
36 | /* | 36 | /* | |
37 | * Definitions for the KLSI KL5KUSB101B USB to ethernet controller. | 37 | * Definitions for the KLSI KL5KUSB101B USB to ethernet controller. | |
38 | * The KLSI part is controlled via vendor control requests, the structure | 38 | * The KLSI part is controlled via vendor control requests, the structure | |
39 | * of which depend a bit on the firmware running on the internal | 39 | * of which depend a bit on the firmware running on the internal | |
40 | * microcontroller. The one exception is the 'send scan data' command, | 40 | * microcontroller. The one exception is the 'send scan data' command, | |
41 | * which is used to load the firmware. | 41 | * which is used to load the firmware. | |
42 | */ | 42 | */ | |
43 | 43 | |||
44 | #include <sys/rndsource.h> | |||
45 | ||||
44 | #define KUE_CONFIG_NO 1 | 46 | #define KUE_CONFIG_NO 1 | |
45 | #define KUE_IFACE_IDX 0 | 47 | #define KUE_IFACE_IDX 0 | |
46 | 48 | |||
47 | #define KUE_CMD_GET_ETHER_DESCRIPTOR 0x00 | 49 | #define KUE_CMD_GET_ETHER_DESCRIPTOR 0x00 | |
48 | #define KUE_CMD_SET_MCAST_FILTERS 0x01 | 50 | #define KUE_CMD_SET_MCAST_FILTERS 0x01 | |
49 | #define KUE_CMD_SET_PKT_FILTER 0x02 | 51 | #define KUE_CMD_SET_PKT_FILTER 0x02 | |
50 | #define KUE_CMD_GET_ETHERSTATS 0x03 | 52 | #define KUE_CMD_GET_ETHERSTATS 0x03 | |
51 | #define KUE_CMD_GET_GPIO 0x04 | 53 | #define KUE_CMD_GET_GPIO 0x04 | |
52 | #define KUE_CMD_SET_GPIO 0x05 | 54 | #define KUE_CMD_SET_GPIO 0x05 | |
53 | #define KUE_CMD_SET_MAC 0x06 | 55 | #define KUE_CMD_SET_MAC 0x06 | |
54 | #define KUE_CMD_GET_MAC 0x07 | 56 | #define KUE_CMD_GET_MAC 0x07 | |
55 | #define KUE_CMD_SET_URB_SIZE 0x08 | 57 | #define KUE_CMD_SET_URB_SIZE 0x08 | |
56 | #define KUE_CMD_SET_SOFS 0x09 | 58 | #define KUE_CMD_SET_SOFS 0x09 |
--- src/sys/dev/usb/Attic/if_smscvar.h 2014/06/09 14:18:28 1.3
+++ src/sys/dev/usb/Attic/if_smscvar.h 2015/04/14 20:32:36 1.4
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: if_smscvar.h,v 1.3 2014/06/09 14:18:28 mlelstv Exp $ */ | 1 | /* $NetBSD: if_smscvar.h,v 1.4 2015/04/14 20:32:36 riastradh Exp $ */ | |
2 | 2 | |||
3 | /* $OpenBSD: if_smscreg.h,v 1.2 2012/09/27 12:38:11 jsg Exp $ */ | 3 | /* $OpenBSD: if_smscreg.h,v 1.2 2012/09/27 12:38:11 jsg Exp $ */ | |
4 | /*- | 4 | /*- | |
5 | * Copyright (c) 2012 | 5 | * Copyright (c) 2012 | |
6 | * Ben Gray <bgray@freebsd.org>. | 6 | * Ben Gray <bgray@freebsd.org>. | |
7 | * All rights reserved. | 7 | * All rights reserved. | |
8 | * | 8 | * | |
9 | * Redistribution and use in source and binary forms, with or without | 9 | * Redistribution and use in source and binary forms, with or without | |
10 | * modification, are permitted provided that the following conditions | 10 | * modification, are permitted provided that the following conditions | |
11 | * are met: | 11 | * are met: | |
12 | * 1. Redistributions of source code must retain the above copyright | 12 | * 1. Redistributions of source code must retain the above copyright | |
13 | * notice, this list of conditions and the following disclaimer. | 13 | * notice, this list of conditions and the following disclaimer. | |
14 | * 2. Redistributions in binary form must reproduce the above copyright | 14 | * 2. Redistributions in binary form must reproduce the above copyright | |
@@ -22,26 +22,28 @@ | @@ -22,26 +22,28 @@ | |||
22 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | 22 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | |
23 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | 23 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | |
24 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | 24 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |
25 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | 25 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | |
26 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | 26 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | |
27 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 27 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |
28 | * SUCH DAMAGE. | 28 | * SUCH DAMAGE. | |
29 | * | 29 | * | |
30 | * $FreeBSD: src/sys/dev/usb/net/if_smscreg.h,v 1.1 2012/08/15 04:03:55 gonzo Exp $ | 30 | * $FreeBSD: src/sys/dev/usb/net/if_smscreg.h,v 1.1 2012/08/15 04:03:55 gonzo Exp $ | |
31 | */ | 31 | */ | |
32 | #ifndef _IF_SMSCVAR_H_ | 32 | #ifndef _IF_SMSCVAR_H_ | |
33 | #define _IF_SMSCVAR_H_ | 33 | #define _IF_SMSCVAR_H_ | |
34 | 34 | |||
35 | #include <sys/rndsource.h> | |||
36 | ||||
35 | struct smsc_chain { | 37 | struct smsc_chain { | |
36 | struct smsc_softc *sc_sc; | 38 | struct smsc_softc *sc_sc; | |
37 | usbd_xfer_handle sc_xfer; | 39 | usbd_xfer_handle sc_xfer; | |
38 | char *sc_buf; | 40 | char *sc_buf; | |
39 | struct mbuf *sc_mbuf; | 41 | struct mbuf *sc_mbuf; | |
40 | int sc_accum; | 42 | int sc_accum; | |
41 | int sc_idx; | 43 | int sc_idx; | |
42 | }; | 44 | }; | |
43 | 45 | |||
44 | struct smsc_cdata { | 46 | struct smsc_cdata { | |
45 | struct smsc_chain tx_chain[SMSC_TX_LIST_CNT]; | 47 | struct smsc_chain tx_chain[SMSC_TX_LIST_CNT]; | |
46 | struct smsc_chain rx_chain[SMSC_RX_LIST_CNT]; | 48 | struct smsc_chain rx_chain[SMSC_RX_LIST_CNT]; | |
47 | int tx_prod; | 49 | int tx_prod; |
--- src/sys/dev/usb/if_udavreg.h 2012/08/24 09:01:23 1.9
+++ src/sys/dev/usb/if_udavreg.h 2015/04/14 20:32:36 1.10
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: if_udavreg.h,v 1.9 2012/08/24 09:01:23 msaitoh Exp $ */ | 1 | /* $NetBSD: if_udavreg.h,v 1.10 2015/04/14 20:32:36 riastradh Exp $ */ | |
2 | /* $nabe: if_udavreg.h,v 1.2 2003/08/21 16:26:40 nabe Exp $ */ | 2 | /* $nabe: if_udavreg.h,v 1.2 2003/08/21 16:26:40 nabe Exp $ */ | |
3 | /* | 3 | /* | |
4 | * Copyright (c) 2003 | 4 | * Copyright (c) 2003 | |
5 | * Shingo WATANABE <nabe@nabechan.org>. All rights reserved. | 5 | * Shingo WATANABE <nabe@nabechan.org>. All rights reserved. | |
6 | * | 6 | * | |
7 | * Redistribution and use in source and binary forms, with or without | 7 | * Redistribution and use in source and binary forms, with or without | |
8 | * modification, are permitted provided that the following conditions | 8 | * modification, are permitted provided that the following conditions | |
9 | * are met: | 9 | * are met: | |
10 | * 1. Redistributions of source code must retain the above copyright | 10 | * 1. Redistributions of source code must retain the above copyright | |
11 | * notice, this list of conditions and the following disclaimer. | 11 | * notice, this list of conditions and the following disclaimer. | |
12 | * 2. Redistributions in binary form must reproduce the above copyright | 12 | * 2. Redistributions in binary form must reproduce the above copyright | |
13 | * notice, this list of conditions and the following disclaimer in the | 13 | * notice, this list of conditions and the following disclaimer in the | |
14 | * documentation and/or other materials provided with the distribution. | 14 | * documentation and/or other materials provided with the distribution. | |
@@ -20,26 +20,28 @@ | @@ -20,26 +20,28 @@ | |||
20 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | 20 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | |
21 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | 21 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | |
22 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE | 22 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE | |
23 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | 23 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | |
24 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | 24 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | |
25 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | 25 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |
26 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | 26 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | |
27 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | 27 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | |
28 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 28 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |
29 | * SUCH DAMAGE. | 29 | * SUCH DAMAGE. | |
30 | * | 30 | * | |
31 | */ | 31 | */ | |
32 | 32 | |||
33 | #include <sys/rndsource.h> | |||
34 | ||||
33 | #define UDAV_IFACE_INDEX 0 | 35 | #define UDAV_IFACE_INDEX 0 | |
34 | #define UDAV_CONFIG_NO 1 | 36 | #define UDAV_CONFIG_NO 1 | |
35 | 37 | |||
36 | #define UDAV_TX_LIST_CNT 1 | 38 | #define UDAV_TX_LIST_CNT 1 | |
37 | #define UDAV_RX_LIST_CNT 1 | 39 | #define UDAV_RX_LIST_CNT 1 | |
38 | 40 | |||
39 | #define UDAV_TX_TIMEOUT 1000 | 41 | #define UDAV_TX_TIMEOUT 1000 | |
40 | #define UDAV_TIMEOUT 10000 | 42 | #define UDAV_TIMEOUT 10000 | |
41 | 43 | |||
42 | #define ETHER_ALIGN 2 | 44 | #define ETHER_ALIGN 2 | |
43 | 45 | |||
44 | 46 | |||
45 | /* Packet length */ | 47 | /* Packet length */ |
--- src/sys/dev/usb/if_urlreg.h 2012/08/24 09:01:23 1.9
+++ src/sys/dev/usb/if_urlreg.h 2015/04/14 20:32:36 1.10
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: if_urlreg.h,v 1.9 2012/08/24 09:01:23 msaitoh Exp $ */ | 1 | /* $NetBSD: if_urlreg.h,v 1.10 2015/04/14 20:32:36 riastradh Exp $ */ | |
2 | /* | 2 | /* | |
3 | * Copyright (c) 2001, 2002 | 3 | * Copyright (c) 2001, 2002 | |
4 | * Shingo WATANABE <nabe@nabechan.org>. All rights reserved. | 4 | * Shingo WATANABE <nabe@nabechan.org>. All rights reserved. | |
5 | * | 5 | * | |
6 | * Redistribution and use in source and binary forms, with or without | 6 | * Redistribution and use in source and binary forms, with or without | |
7 | * modification, are permitted provided that the following conditions | 7 | * modification, are permitted provided that the following conditions | |
8 | * are met: | 8 | * are met: | |
9 | * 1. Redistributions of source code must retain the above copyright | 9 | * 1. Redistributions of source code must retain the above copyright | |
10 | * notice, this list of conditions and the following disclaimer. | 10 | * notice, this list of conditions and the following disclaimer. | |
11 | * 2. Redistributions in binary form must reproduce the above copyright | 11 | * 2. Redistributions in binary form must reproduce the above copyright | |
12 | * notice, this list of conditions and the following disclaimer in the | 12 | * notice, this list of conditions and the following disclaimer in the | |
13 | * documentation and/or other materials provided with the distribution. | 13 | * documentation and/or other materials provided with the distribution. | |
14 | * 3. Neither the name of the author nor the names of any co-contributors | 14 | * 3. Neither the name of the author nor the names of any co-contributors | |
@@ -19,26 +19,28 @@ | @@ -19,26 +19,28 @@ | |||
19 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | 19 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | |
20 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | 20 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | |
21 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE | 21 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE | |
22 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | 22 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | |
23 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | 23 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | |
24 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | 24 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |
25 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | 25 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | |
26 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | 26 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | |
27 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 27 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |
28 | * SUCH DAMAGE. | 28 | * SUCH DAMAGE. | |
29 | * | 29 | * | |
30 | */ | 30 | */ | |
31 | 31 | |||
32 | #include <sys/rndsource.h> | |||
33 | ||||
32 | #define URL_IFACE_INDEX 0 | 34 | #define URL_IFACE_INDEX 0 | |
33 | #define URL_CONFIG_NO 1 | 35 | #define URL_CONFIG_NO 1 | |
34 | 36 | |||
35 | #define URL_TX_LIST_CNT 1 | 37 | #define URL_TX_LIST_CNT 1 | |
36 | #define URL_RX_LIST_CNT 1 | 38 | #define URL_RX_LIST_CNT 1 | |
37 | 39 | |||
38 | #define URL_TX_TIMEOUT 1000 | 40 | #define URL_TX_TIMEOUT 1000 | |
39 | #define URL_TIMEOUT 10000 | 41 | #define URL_TIMEOUT 10000 | |
40 | 42 | |||
41 | #define ETHER_ALIGN 2 | 43 | #define ETHER_ALIGN 2 | |
42 | 44 | |||
43 | 45 | |||
44 | /* Packet length */ | 46 | /* Packet length */ |