1144513Simp/*- 2144611Simp * Copyright (C) 2005 M. Warner Losh. All rights reserved. 3144611Simp * 4144611Simp * Redistribution and use in source and binary forms, with or without 5144611Simp * modification, are permitted provided that the following conditions 6144611Simp * are met: 7144611Simp * 1. Redistributions of source code must retain the above copyright 8144611Simp * notice, this list of conditions and the following disclaimer. 9144611Simp * 2. Redistributions in binary form must reproduce the above copyright 10144611Simp * notice, this list of conditions and the following disclaimer in the 11144611Simp * documentation and/or other materials provided with the distribution. 12144611Simp * 13144611Simp * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND 14144611Simp * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 15144611Simp * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 16144611Simp * ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE 17144611Simp * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18144611Simp * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19144611Simp * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20144611Simp * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21144611Simp * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22144611Simp * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23144611Simp * SUCH DAMAGE. 24144611Simp * 25144611Simp * $FreeBSD$ 26144513Simp */ 27144513Simp 28144611Simp#ifndef _PC98_INCLUDE_MD_VAR_H_ 29144611Simp#define _PC98_INCLUDE_MD_VAR_H_ 30144611Simp 31144513Simp#include <i386/md_var.h> 32144611Simp 33144611Simp/* 34144611Simp * PC98 machines are based on Intel CPUs. Some add-in boards offer 35144611Simp * different CPUs than came with the processor. These CPUs sometimes 36144611Simp * require additional flushing before and/or after DMAs. 37144611Simp */ 38144611Simpextern int need_pre_dma_flush; 39144611Simpextern int need_post_dma_flush; 40144611Simp 41161129Simp/* 42230736Smarius * The geometry of disks might need adjustment on PC98 machines. 43161129Simp */ 44230736Smariusstruct ccb_calc_geometry; 45230736Smariusint scsi_da_bios_params(struct ccb_calc_geometry *); 46161129Simpstruct disk; 47208349Smariusvoid pc98_ata_disk_firmware_geom_adjust(struct disk *); 48208349Smarius#define ata_disk_firmware_geom_adjust(disk) \ 49208349Smarius pc98_ata_disk_firmware_geom_adjust(disk) 50161129Simp 51144611Simp#endif /* !_PC98_INCLUDE_MD_VAR_H_ */ 52