mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
Move the scsi_da_bios_params() prototype from pc98_machdep.h to md_var.h
where the prototype for pc98_ata_disk_firmware_geom_adjust() also lives in order to avoid an #ifdef'ed include in cam(4).
This commit is contained in:
parent
1bd7c5de77
commit
7a5419b500
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=228027
@ -48,10 +48,6 @@ __FBSDID("$FreeBSD$");
|
|||||||
#include <sys/sysctl.h>
|
#include <sys/sysctl.h>
|
||||||
#include <sys/kthread.h>
|
#include <sys/kthread.h>
|
||||||
|
|
||||||
#ifdef PC98
|
|
||||||
#include <pc98/pc98/pc98_machdep.h> /* geometry translation */
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <cam/cam.h>
|
#include <cam/cam.h>
|
||||||
#include <cam/cam_ccb.h>
|
#include <cam/cam_ccb.h>
|
||||||
#include <cam/cam_periph.h>
|
#include <cam/cam_periph.h>
|
||||||
|
@ -39,10 +39,10 @@ extern int need_pre_dma_flush;
|
|||||||
extern int need_post_dma_flush;
|
extern int need_post_dma_flush;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The ad driver maps the IDE disk's actual geometry to the firmware's
|
* The geometry of disks might need adjustment on PC98 machines.
|
||||||
* notion of geometry. However, PC98 machines need to do something
|
|
||||||
* different sometimes, so override the hook so we can do so.
|
|
||||||
*/
|
*/
|
||||||
|
struct ccb_calc_geometry;
|
||||||
|
int scsi_da_bios_params(struct ccb_calc_geometry *);
|
||||||
struct disk;
|
struct disk;
|
||||||
void pc98_ata_disk_firmware_geom_adjust(struct disk *);
|
void pc98_ata_disk_firmware_geom_adjust(struct disk *);
|
||||||
#define ata_disk_firmware_geom_adjust(disk) \
|
#define ata_disk_firmware_geom_adjust(disk) \
|
||||||
|
@ -33,9 +33,6 @@
|
|||||||
void pc98_init_dmac(void);
|
void pc98_init_dmac(void);
|
||||||
unsigned int pc98_getmemsize(unsigned *, unsigned *);
|
unsigned int pc98_getmemsize(unsigned *, unsigned *);
|
||||||
|
|
||||||
struct ccb_calc_geometry;
|
|
||||||
int scsi_da_bios_params(struct ccb_calc_geometry *);
|
|
||||||
|
|
||||||
#define PC98_VECTOR_SIZE (0x400)
|
#define PC98_VECTOR_SIZE (0x400)
|
||||||
#define PC98_SYSTEM_PARAMETER_SIZE (0x240)
|
#define PC98_SYSTEM_PARAMETER_SIZE (0x240)
|
||||||
#define PC98_SAVE_AREA (0xa1000)
|
#define PC98_SAVE_AREA (0xa1000)
|
||||||
|
Loading…
Reference in New Issue
Block a user