Mercurial > vordog
comparison vordog.c @ 3:60a234c9c03f
Add 2-clause BSD license
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Tue, 08 Jul 2008 12:13:58 +0800 |
parents | 0b9854adb86c |
children | e59963b503cb |
comparison
equal
deleted
inserted
replaced
2:89e9d591748d | 3:60a234c9c03f |
---|---|
1 /*- | |
2 * Copyright (c) 2008 Kueifong Li <thinker@branda.to>. | |
3 * All rights reserved. | |
4 * | |
5 * Redistribution and use in source and binary forms, with or without | |
6 * modification, are permitted provided that the following conditions | |
7 * are met: | |
8 * 1. Redistributions of source code must retain the above copyright | |
9 * notice, this list of conditions and the following disclaimer. | |
10 * 2. Redistributions in binary form must reproduce the above copyright | |
11 * notice, this list of conditions and the following disclaimer in the | |
12 * documentation and/or other materials provided with the distribution. | |
13 * | |
14 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS | |
15 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED | |
16 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | |
17 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS | |
18 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | |
19 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | |
20 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | |
21 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | |
22 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | |
23 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | |
24 * POSSIBILITY OF SUCH DAMAGE. | |
25 */ | |
1 #include <sys/param.h> | 26 #include <sys/param.h> |
2 #include <sys/bus.h> | 27 #include <sys/bus.h> |
3 #include <sys/conf.h> | 28 #include <sys/conf.h> |
4 #include <sys/kernel.h> | 29 #include <sys/kernel.h> |
5 #include <sys/module.h> | 30 #include <sys/module.h> |
8 #include <sys/ioccom.h> | 33 #include <sys/ioccom.h> |
9 #include <sys/types.h> | 34 #include <sys/types.h> |
10 #include <sys/malloc.h> | 35 #include <sys/malloc.h> |
11 #include "vordog.h" | 36 #include "vordog.h" |
12 | 37 |
13 #if 1 | 38 #if 0 |
14 #undef __FreeBSD_version | 39 #undef __FreeBSD_version |
15 #define __FreeBSD_version 800029 | 40 #define __FreeBSD_version 800029 |
16 #endif | 41 #endif |
17 | 42 |
18 #define VD_STATUS 0x841 | 43 #define VD_STATUS 0x841 |