Deleted Added
full compact
bktr_os.c (62214) bktr_os.c (64880)
1/* $FreeBSD: head/sys/dev/bktr/bktr_os.c 62214 2000-06-28 15:09:12Z roger $ */
1/* $FreeBSD: head/sys/dev/bktr/bktr_os.c 64880 2000-08-20 21:34:39Z phk $ */
2
3/*
4 * This is part of the Driver for Video Capture Cards (Frame grabbers)
5 * and TV Tuner cards using the Brooktree Bt848, Bt848A, Bt849A, Bt878, Bt879
6 * chipset.
7 * Copyright Roger Hardiman and Amancio Hasty.
8 *
9 * bktr_os : This has all the Operating System dependant code,

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

75#include <sys/select.h>
76#include <sys/vnode.h>
77
78#include <vm/vm.h>
79#include <vm/vm_kern.h>
80#include <vm/pmap.h>
81#include <vm/vm_extern.h>
82
2
3/*
4 * This is part of the Driver for Video Capture Cards (Frame grabbers)
5 * and TV Tuner cards using the Brooktree Bt848, Bt848A, Bt849A, Bt878, Bt879
6 * chipset.
7 * Copyright Roger Hardiman and Amancio Hasty.
8 *
9 * bktr_os : This has all the Operating System dependant code,

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

75#include <sys/select.h>
76#include <sys/vnode.h>
77
78#include <vm/vm.h>
79#include <vm/vm_kern.h>
80#include <vm/pmap.h>
81#include <vm/vm_extern.h>
82
83#if (__FreeBSD_version < 400000)
84#ifdef DEVFS
85#include <sys/devfsext.h>
86#endif /* DEVFS */
87#endif
88
89#if (__FreeBSD_version >=400000) || (NSMBUS > 0)
90#include <sys/bus.h> /* used by smbus and newbus */
91#endif
92
93#if (__FreeBSD_version >=300000)
94#include <machine/bus_memio.h> /* used by bus space */
95#include <machine/bus.h> /* used by bus space and newbus */
96#include <sys/bus.h>

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

967
968
969 /* read the pci device id and revision id */
970 fun = pci_conf_read(tag, PCI_ID_REG);
971 rev = pci_conf_read(tag, PCIR_REVID) & 0x000000ff;
972
973 /* call the common attach code */
974 common_bktr_attach( bktr, unit, fun, rev );
83#if (__FreeBSD_version >=400000) || (NSMBUS > 0)
84#include <sys/bus.h> /* used by smbus and newbus */
85#endif
86
87#if (__FreeBSD_version >=300000)
88#include <machine/bus_memio.h> /* used by bus space */
89#include <machine/bus.h> /* used by bus space and newbus */
90#include <sys/bus.h>

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

961
962
963 /* read the pci device id and revision id */
964 fun = pci_conf_read(tag, PCI_ID_REG);
965 rev = pci_conf_read(tag, PCIR_REVID) & 0x000000ff;
966
967 /* call the common attach code */
968 common_bktr_attach( bktr, unit, fun, rev );
975
976#ifdef DEVFS
977 /* XXX This just throw away the token, which should probably be fixed when
978 DEVFS is finally made really operational. */
979 devfs_add_devswf(&bktr_cdevsw, unit, DV_CHR, 0, 0, 0444, "bktr%d", unit);
980 devfs_add_devswf(&bktr_cdevsw, unit+16, DV_CHR, 0, 0, 0444, "tuner%d", unit);
981 devfs_add_devswf(&bktr_cdevsw, unit+32, DV_CHR, 0, 0, 0444, "vbi%d", unit);
982#endif /* DEVFS */
983
984}
985
986
987/*
988 * Special Memory Allocation
989 */
990vm_offset_t

--- 722 unchanged lines hidden ---
969
970}
971
972
973/*
974 * Special Memory Allocation
975 */
976vm_offset_t

--- 722 unchanged lines hidden ---