mirror of
https://github.com/86Box/86Box.git
synced 2026-02-22 01:25:33 -07:00
Merge branch '86Box:master' into broken-sensation1
This commit is contained in:
@@ -315,6 +315,9 @@ extern uint16_t get_last_addr(void);
|
||||
extern void sub_cycles(int c);
|
||||
extern void resub_cycles(int old_cycles);
|
||||
|
||||
extern void sub_cycles_vx0(int c);
|
||||
extern void resub_cycles_vx0(int old_cycles);
|
||||
|
||||
extern void ack_pause(void);
|
||||
extern void do_pause(int p);
|
||||
|
||||
|
||||
@@ -18,11 +18,6 @@
|
||||
#endif
|
||||
|
||||
typedef struct lpt_device_s {
|
||||
const char *name;
|
||||
const char *internal_name;
|
||||
|
||||
void *(*init)(void *lpt);
|
||||
void (*close)(void *priv);
|
||||
void (*write_data)(uint8_t val, void *priv);
|
||||
void (*write_ctrl)(uint8_t val, void *priv);
|
||||
void (*strobe)(uint8_t old, uint8_t val,void *priv);
|
||||
@@ -31,13 +26,7 @@ typedef struct lpt_device_s {
|
||||
void (*epp_write_data)(uint8_t is_addr, uint8_t val, void *priv);
|
||||
void (*epp_request_read)(uint8_t is_addr, void *priv);
|
||||
|
||||
void *priv;
|
||||
struct lpt_t *lpt;
|
||||
//#ifdef EMU_DEVICE_H
|
||||
// struct device_t *cfgdevice;
|
||||
//#else
|
||||
void *cfgdevice;
|
||||
//#endif
|
||||
void * priv;
|
||||
} lpt_device_t;
|
||||
|
||||
#ifdef _TIMER_H_
|
||||
@@ -86,6 +75,8 @@ typedef struct lpt_port_s {
|
||||
uint8_t enabled;
|
||||
|
||||
int device;
|
||||
|
||||
lpt_t *lpt;
|
||||
} lpt_port_t;
|
||||
|
||||
extern lpt_port_t lpt_ports[PARALLEL_MAX];
|
||||
@@ -96,6 +87,22 @@ typedef enum {
|
||||
LPT_STATE_WRITE_FIFO
|
||||
} lpt_state_t;
|
||||
|
||||
extern const device_t lpt_dac_device;
|
||||
extern const device_t lpt_dac_stereo_device;
|
||||
|
||||
extern const device_t dss_device;
|
||||
|
||||
extern const device_t lpt_hasp_savquest_device;
|
||||
|
||||
extern int lpt_device_available(int id);
|
||||
#ifdef EMU_DEVICE_H
|
||||
extern const device_t *lpt_device_getdevice(const int id);
|
||||
#endif
|
||||
extern int lpt_device_has_config(const int id);
|
||||
extern const char *lpt_device_get_name(int id);
|
||||
extern const char *lpt_device_get_internal_name(int id);
|
||||
extern int lpt_device_get_from_internal_name(const char *str);
|
||||
|
||||
extern void lpt_write(uint16_t port, uint8_t val, void *priv);
|
||||
|
||||
extern void lpt_write_to_fifo(void *priv, uint8_t val);
|
||||
@@ -109,24 +116,6 @@ extern uint8_t lpt_read_ecp_mode(lpt_t *dev);
|
||||
|
||||
extern void lpt_irq(void *priv, int raise);
|
||||
|
||||
extern int lpt_device_get_from_internal_name(const char *str);
|
||||
|
||||
extern const char *lpt_device_get_name(int id);
|
||||
extern const char *lpt_device_get_internal_name(int id);
|
||||
|
||||
#ifdef EMU_DEVICE_H
|
||||
extern const device_t *lpt_device_getdevice(const int id);
|
||||
#endif
|
||||
|
||||
extern int lpt_device_has_config(const int id);
|
||||
|
||||
extern const lpt_device_t lpt_dac_device;
|
||||
extern const lpt_device_t lpt_dac_stereo_device;
|
||||
|
||||
extern const lpt_device_t dss_device;
|
||||
|
||||
extern const lpt_device_t lpt_hasp_savquest_device;
|
||||
|
||||
extern void lpt_set_ext(lpt_t *dev, uint8_t ext);
|
||||
extern void lpt_set_ecp(lpt_t *dev, uint8_t ecp);
|
||||
extern void lpt_set_epp(lpt_t *dev, uint8_t epp);
|
||||
@@ -143,12 +132,21 @@ extern void lpt_port_remove(lpt_t *dev);
|
||||
extern void lpt1_remove_ams(lpt_t *dev);
|
||||
|
||||
extern void lpt_devices_init(void);
|
||||
extern void * lpt_attach(void (*write_data)(uint8_t val, void *priv),
|
||||
void (*write_ctrl)(uint8_t val, void *priv),
|
||||
void (*strobe)(uint8_t old, uint8_t val,void *priv),
|
||||
uint8_t (*read_status)(void *priv),
|
||||
uint8_t (*read_ctrl)(void *priv),
|
||||
void (*epp_write_data)(uint8_t is_addr, uint8_t val, void *priv),
|
||||
void (*epp_request_read)(uint8_t is_addr, void *priv),
|
||||
void *priv);
|
||||
extern void lpt_devices_close(void);
|
||||
|
||||
extern void lpt_set_next_inst(int ni);
|
||||
extern void lpt_set_3bc_used(int is_3bc_used);
|
||||
|
||||
extern void lpt_standalone_init(void);
|
||||
extern void lpt_ports_reset(void);
|
||||
|
||||
extern const device_t lpt_port_device;
|
||||
|
||||
|
||||
@@ -1409,6 +1409,9 @@ extern const device_t tandy_1000sl_video_device;
|
||||
extern int machine_tandy1000sl2_init(const machine_t *);
|
||||
|
||||
/* m_v86p.c */
|
||||
#ifdef EMU_DEVICE_H
|
||||
extern const device_t v86p_device;
|
||||
#endif
|
||||
extern int machine_v86p_init(const machine_t *);
|
||||
|
||||
/* m_xt.c */
|
||||
@@ -1480,6 +1483,9 @@ extern int machine_xt_to16_init(const machine_t *);
|
||||
extern const device_t vendex_device;
|
||||
#endif
|
||||
extern int machine_xt_vendex_init(const machine_t *);
|
||||
#ifdef EMU_DEVICE_H
|
||||
extern const device_t laserxt_device;
|
||||
#endif
|
||||
extern int machine_xt_laserxt_init(const machine_t *);
|
||||
extern int machine_xt_znic_init(const machine_t *);
|
||||
extern int machine_xt_z151_init(const machine_t *);
|
||||
|
||||
@@ -244,10 +244,8 @@ extern const device_t pcnet_am79c973_onboard_device;
|
||||
extern const device_t modem_device;
|
||||
|
||||
/* PLIP */
|
||||
#ifdef EMU_LPT_H
|
||||
extern const lpt_device_t lpt_plip_device;
|
||||
#endif
|
||||
extern const device_t plip_device;
|
||||
extern const device_t lpt_plip_device;
|
||||
extern const device_t plip_device;
|
||||
|
||||
/* Realtek RTL8139C+ */
|
||||
extern const device_t rtl8139c_plus_device;
|
||||
|
||||
@@ -1,15 +1,9 @@
|
||||
#ifndef EMU_PRT_DEVS_H
|
||||
#define EMU_PRT_DEVS_H
|
||||
|
||||
extern const lpt_device_t lpt_prt_text_device;
|
||||
extern const device_t prt_text_device;
|
||||
extern const lpt_device_t lpt_prt_escp_device;
|
||||
extern const device_t prt_escp_device;
|
||||
extern const lpt_device_t lpt_prt_ps_device;
|
||||
extern const device_t prt_ps_device;
|
||||
#ifdef USE_PCL
|
||||
extern const lpt_device_t lpt_prt_pcl_device;
|
||||
extern const device_t prt_pcl_device;
|
||||
#endif
|
||||
extern const device_t lpt_prt_text_device;
|
||||
extern const device_t lpt_prt_escp_device;
|
||||
extern const device_t lpt_prt_ps_device;
|
||||
extern const device_t lpt_prt_pcl_device;
|
||||
|
||||
#endif /*EMU_PRT_DEVS_H*/
|
||||
|
||||
Reference in New Issue
Block a user