Deleted Added
full compact
smapi.c (120506) smapi.c (126076)
1/*-
2 * Copyright (c) 2003 Matthew N. Dodd <winter@jurai.net>
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

--- 11 unchanged lines hidden (view full) ---

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
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
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2003 Matthew N. Dodd <winter@jurai.net>
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

--- 11 unchanged lines hidden (view full) ---

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
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
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/i386/bios/smapi.c 120506 2003-09-27 12:01:01Z phk $");
28__FBSDID("$FreeBSD: head/sys/i386/bios/smapi.c 126076 2004-02-21 19:42:58Z phk $");
29
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/kernel.h>
33
34#include <sys/module.h>
35#include <sys/bus.h>
36#include <sys/conf.h>

--- 35 unchanged lines hidden (view full) ---

72
73devclass_t smapi_devclass;
74
75static d_ioctl_t smapi_ioctl;
76
77static struct cdevsw smapi_cdevsw = {
78 .d_ioctl = smapi_ioctl,
79 .d_name = "smapi",
29
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/kernel.h>
33
34#include <sys/module.h>
35#include <sys/bus.h>
36#include <sys/conf.h>

--- 35 unchanged lines hidden (view full) ---

72
73devclass_t smapi_devclass;
74
75static d_ioctl_t smapi_ioctl;
76
77static struct cdevsw smapi_cdevsw = {
78 .d_ioctl = smapi_ioctl,
79 .d_name = "smapi",
80 .d_maj = MAJOR_AUTO,
81 .d_flags = D_MEM,
82};
83
84static void smapi_identify (driver_t *, device_t);
85static int smapi_probe (device_t);
86static int smapi_attach (device_t);
87static int smapi_detach (device_t);
88static int smapi_modevent (module_t, int, void *);

--- 239 unchanged lines hidden ---
80 .d_flags = D_MEM,
81};
82
83static void smapi_identify (driver_t *, device_t);
84static int smapi_probe (device_t);
85static int smapi_attach (device_t);
86static int smapi_detach (device_t);
87static int smapi_modevent (module_t, int, void *);

--- 239 unchanged lines hidden ---