fdcvar.h (f86e60008bdf690b61af2c18e98ee791ca91433f) | fdcvar.h (7c146c0cbca3b08c21f0e59409672e8d647bcd44) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 2004-2005 M. Warner Losh <imp@FreeBSD.org> 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 56 unchanged lines hidden (view full) --- 65 bus_space_handle_t ioh[FDC_MAXREG]; 66 int ioff[FDC_MAXREG]; 67 void *fdc_intr; 68 device_t fdc_dev; 69 struct mtx fdc_mtx; 70 struct proc *fdc_thread; 71}; 72 | 1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 2004-2005 M. Warner Losh <imp@FreeBSD.org> 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 56 unchanged lines hidden (view full) --- 65 bus_space_handle_t ioh[FDC_MAXREG]; 66 int ioff[FDC_MAXREG]; 67 void *fdc_intr; 68 device_t fdc_dev; 69 struct mtx fdc_mtx; 70 struct proc *fdc_thread; 71}; 72 |
73extern devclass_t fdc_devclass; 74 | |
75enum fdc_device_ivars { 76 FDC_IVAR_FDUNIT, 77 FDC_IVAR_FDTYPE, 78}; 79 80__BUS_ACCESSOR(fdc, fdunit, FDC, FDUNIT, int); 81__BUS_ACCESSOR(fdc, fdtype, FDC, FDTYPE, int); 82 83void fdc_release_resources(struct fdc_data *); 84int fdc_attach(device_t); 85void fdc_start_worker(device_t); 86int fdc_hints_probe(device_t); 87int fdc_detach(device_t dev); 88device_t fdc_add_child(device_t, const char *, int); 89int fdc_initial_reset(device_t, struct fdc_data *); 90int fdc_print_child(device_t, device_t); 91int fdc_read_ivar(device_t, device_t, int, uintptr_t *); 92int fdc_write_ivar(device_t, device_t, int, uintptr_t); 93int fdc_isa_alloc_resources(device_t, struct fdc_data *); | 73enum fdc_device_ivars { 74 FDC_IVAR_FDUNIT, 75 FDC_IVAR_FDTYPE, 76}; 77 78__BUS_ACCESSOR(fdc, fdunit, FDC, FDUNIT, int); 79__BUS_ACCESSOR(fdc, fdtype, FDC, FDTYPE, int); 80 81void fdc_release_resources(struct fdc_data *); 82int fdc_attach(device_t); 83void fdc_start_worker(device_t); 84int fdc_hints_probe(device_t); 85int fdc_detach(device_t dev); 86device_t fdc_add_child(device_t, const char *, int); 87int fdc_initial_reset(device_t, struct fdc_data *); 88int fdc_print_child(device_t, device_t); 89int fdc_read_ivar(device_t, device_t, int, uintptr_t *); 90int fdc_write_ivar(device_t, device_t, int, uintptr_t); 91int fdc_isa_alloc_resources(device_t, struct fdc_data *); |