mirror of
https://github.com/simh/simh.git
synced 2026-04-26 20:16:39 +00:00
ALL: Standardize writelock behavior adding global UNIT_WLK & UNIT_WPRT
Historically this functionality was reimplemented within each DEVICE simulator often with slightly different implementations and inconsistencies. Solving this globally within SCP required changes in many places, but should henceforth be reasonably managed. As discussed in #1034
This commit is contained in:
@@ -66,10 +66,9 @@
|
||||
#define SCSI_DBG_BUS 0x04000000 /* bus activity */
|
||||
#define SCSI_DBG_DSK 0x08000000 /* disk activity */
|
||||
|
||||
#define SCSI_V_WLK DKUF_V_WLK /* hwre write lock */
|
||||
#define SCSI_V_NOAUTO ((DKUF_V_UF > MTUF_V_UF) ? DKUF_V_UF : MTUF_V_UF)/* noautosize */
|
||||
#define SCSI_V_UF (SCSI_V_NOAUTO + 1)
|
||||
#define SCSI_WLK (1 << SCSI_V_WLK)
|
||||
#define SCSI_WLK (UNIT_WLK|UNIT_RO) /* hwre write lock */
|
||||
#define SCSI_NOAUTO (1 << SCSI_V_NOAUTO)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user