1/* 2 * Copyright (c) 1990 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Don Ahn. 7 * 8 * Libretto PCMCIA floppy support by David Horwitt (dhorwitt@ucsd.edu) --- 36 unchanged lines hidden (view full) --- 45 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 46 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 47 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 48 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 49 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 50 * SUCH DAMAGE. 51 * 52 * from: @(#)fd.c 7.4 (Berkeley) 5/25/91 |
53 * $FreeBSD: head/sys/pc98/cbus/fdc.c 111815 2003-03-03 12:15:54Z phk $ |
54 */ 55 56#include "opt_fdc.h" 57#include "card.h" 58 59#include <sys/param.h> 60#include <sys/systm.h> 61#include <sys/bio.h> --- 553 unchanged lines hidden (view full) --- 615fdin_rd(fdc_p fdc) 616{ 617 return bus_space_read_1(fdc->portt, fdc->porth, FDIN); 618} 619#endif /* PC98 */ 620 621#define CDEV_MAJOR 9 622static struct cdevsw fd_cdevsw = { |
623 .d_open = Fdopen, 624 .d_close = fdclose, 625 .d_read = physread, 626 .d_write = physwrite, 627 .d_ioctl = fdioctl, 628 .d_strategy = fdstrategy, 629 .d_name = "fd", 630 .d_maj = CDEV_MAJOR, 631 .d_flags = D_DISK, |
632}; 633 634/* 635 * Auxiliary functions. Well, some only. Others are scattered 636 * throughout the entire file. 637 */ 638static int 639fdc_err(struct fdc_data *fdc, const char *s) --- 2706 unchanged lines hidden --- |