fdcvar.h (132103) | fdcvar.h (132286) |
---|---|
1/* | 1/*- |
2 * Copyright (c) 2004 M. Warner Losh. 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 unchanged lines hidden (view full) --- 20 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * | 2 * Copyright (c) 2004 M. Warner Losh. 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 unchanged lines hidden (view full) --- 20 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * |
28 * $FreeBSD: head/sys/pc98/cbus/fdcvar.h 132103 2004-07-13 13:14:37Z nyan $ | 28 * $FreeBSD: head/sys/pc98/cbus/fdcvar.h 132286 2004-07-17 10:07:19Z nyan $ |
29 */ 30 31/* XXX should audit this file to see if additional copyrights needed */ 32 33enum fdc_type 34{ 35 FDC_NE765, FDC_ENHANCED, FDC_UNKNOWN = -1 36}; --- 38 unchanged lines hidden (view full) --- 75 * Per controller structure (softc). 76 */ 77struct fdc_data 78{ 79 int fdcu; /* our unit number */ 80 int dmacnt; 81 int dmachan; 82 int flags; | 29 */ 30 31/* XXX should audit this file to see if additional copyrights needed */ 32 33enum fdc_type 34{ 35 FDC_NE765, FDC_ENHANCED, FDC_UNKNOWN = -1 36}; --- 38 unchanged lines hidden (view full) --- 75 * Per controller structure (softc). 76 */ 77struct fdc_data 78{ 79 int fdcu; /* our unit number */ 80 int dmacnt; 81 int dmachan; 82 int flags; |
83#define FDC_ATTACHED 0x01 | |
84#define FDC_STAT_VALID 0x08 85#define FDC_HAS_FIFO 0x10 86#define FDC_NEEDS_RESET 0x20 87#define FDC_NODMA 0x40 88#define FDC_ISPNP 0x80 89#define FDC_ISPCMCIA 0x100 90 struct fd_data *fd; 91 int fdu; /* the active drive */ --- 59 unchanged lines hidden (view full) --- 151 152int fdc_alloc_resources(struct fdc_data *); 153#ifndef PC98 154void fdout_wr(fdc_p, u_int8_t); 155#endif 156int fd_cmd(struct fdc_data *, int, ...); 157void fdc_release_resources(struct fdc_data *); 158int fdc_attach(device_t); | 83#define FDC_STAT_VALID 0x08 84#define FDC_HAS_FIFO 0x10 85#define FDC_NEEDS_RESET 0x20 86#define FDC_NODMA 0x40 87#define FDC_ISPNP 0x80 88#define FDC_ISPCMCIA 0x100 89 struct fd_data *fd; 90 int fdu; /* the active drive */ --- 59 unchanged lines hidden (view full) --- 150 151int fdc_alloc_resources(struct fdc_data *); 152#ifndef PC98 153void fdout_wr(fdc_p, u_int8_t); 154#endif 155int fd_cmd(struct fdc_data *, int, ...); 156void fdc_release_resources(struct fdc_data *); 157int fdc_attach(device_t); |
158int fdc_hints_probe(device_t); |
|
159int fdc_detach(device_t dev); | 159int fdc_detach(device_t dev); |
160device_t fdc_add_child(device_t, const char *, int); |
|
160int fdc_initial_reset(struct fdc_data *); 161int fdc_print_child(device_t, device_t); 162int fdc_read_ivar(device_t, device_t, int, uintptr_t *); 163int fdc_write_ivar(device_t, device_t, int, uintptr_t); | 161int fdc_initial_reset(struct fdc_data *); 162int fdc_print_child(device_t, device_t); 163int fdc_read_ivar(device_t, device_t, int, uintptr_t *); 164int fdc_write_ivar(device_t, device_t, int, uintptr_t); |
165#ifndef PC98 166int fdc_isa_alloc_resources(device_t, struct fdc_data *); 167#endif |
|