2017-08-22 21:28:22 +02:00
|
|
|
/*
|
|
|
|
|
* 86Box A hypervisor and IBM PC system emulator that specializes in
|
|
|
|
|
* running old operating systems and software designed for IBM
|
|
|
|
|
* PC systems and compatibles from 1981 through fairly recent
|
|
|
|
|
* system designs based on the PCI bus.
|
|
|
|
|
*
|
|
|
|
|
* This file is part of the 86Box distribution.
|
|
|
|
|
*
|
|
|
|
|
* SCSI controller handler header.
|
|
|
|
|
*
|
2020-03-25 00:46:02 +02:00
|
|
|
*
|
2017-08-22 21:28:22 +02:00
|
|
|
*
|
|
|
|
|
* Authors: TheCollector1995, <mariogplayer@gmail.com>
|
|
|
|
|
* Miran Grca, <mgrca8@gmail.com>
|
|
|
|
|
* Fred N. van Kempen, <decwiz@yahoo.com>
|
2017-10-16 04:54:41 -04:00
|
|
|
*
|
2018-01-24 18:38:43 +01:00
|
|
|
* Copyright 2016-2018 TheCollector1995.
|
|
|
|
|
* Copyright 2016-2018 Miran Grca.
|
|
|
|
|
* Copyright 2017,2018 Fred N. van Kempen.
|
2017-08-22 21:28:22 +02:00
|
|
|
*/
|
2017-08-24 01:14:39 -04:00
|
|
|
#ifndef EMU_SCSI_H
|
2022-02-18 19:42:21 -05:00
|
|
|
# define EMU_SCSI_H
|
2016-11-12 15:06:38 +01:00
|
|
|
|
2022-08-02 20:11:23 -04:00
|
|
|
/* Configuration. */
|
|
|
|
|
#define SCSI_BUS_MAX 4 /* currently we support up to 4 controllers */
|
|
|
|
|
|
|
|
|
|
#define SCSI_ID_MAX 16 /* 16 on wide buses */
|
|
|
|
|
#define SCSI_LUN_MAX 8 /* always 8 */
|
|
|
|
|
|
2022-08-02 20:03:14 -04:00
|
|
|
extern int scsi_card_current[SCSI_BUS_MAX];
|
2017-05-05 01:49:42 +02:00
|
|
|
|
2018-10-02 22:54:28 +02:00
|
|
|
extern int scsi_card_available(int card);
|
2017-10-07 04:34:04 -04:00
|
|
|
#ifdef EMU_DEVICE_H
|
2018-10-02 22:54:28 +02:00
|
|
|
extern const device_t *scsi_card_getdevice(int card);
|
2017-10-07 04:34:04 -04:00
|
|
|
#endif
|
2018-10-02 22:54:28 +02:00
|
|
|
extern int scsi_card_has_config(int card);
|
|
|
|
|
extern char *scsi_card_get_internal_name(int card);
|
|
|
|
|
extern int scsi_card_get_from_internal_name(char *s);
|
|
|
|
|
extern void scsi_card_init(void);
|
2017-10-08 05:04:38 +02:00
|
|
|
|
2017-08-24 01:14:39 -04:00
|
|
|
#endif /*EMU_SCSI_H*/
|