mirror of
https://github.com/Spritetm/minimacplus.git
synced 2025-01-16 21:29:56 +00:00
25 lines
542 B
C
25 lines
542 B
C
#ifndef NCR_H
|
|
#define NCR_H
|
|
#include <stdint.h>
|
|
|
|
typedef struct {
|
|
uint8_t cmd[256];
|
|
uint8_t data[32*1024];
|
|
uint8_t msg[128];
|
|
int cmdlen;
|
|
int datalen;
|
|
int msglen;
|
|
} SCSITransferData;
|
|
|
|
typedef struct {
|
|
int (*scsiCmd)(SCSITransferData *data, unsigned int cmd, unsigned int len, unsigned int lba, void *arg);
|
|
void *arg;
|
|
} SCSIDevice;
|
|
|
|
|
|
void ncrInit();
|
|
void ncrRegisterDevice(int id, SCSIDevice* dev);
|
|
unsigned int ncrRead(unsigned int addr, unsigned int dack);
|
|
void ncrWrite(unsigned int addr,unsigned int dack, unsigned int val);
|
|
|
|
#endif |