25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: dev_wdsc.c,v 1.25 2005/05/15 01:55:51 debug Exp $ |
* $Id: dev_wdsc.c,v 1.27 2005/10/26 14:37:05 debug Exp $ |
29 |
* |
* |
30 |
* WDSC SCSI (WD33C93) controller. |
* WDSC SCSI (WD33C93) controller. |
31 |
* (For SGI-IP22. See sys/arch/sgimips/hpc/sbic* in NetBSD for details.) |
* (For SGI-IP22. See sys/arch/sgimips/hpc/sbic* in NetBSD for details.) |
37 |
#include <stdlib.h> |
#include <stdlib.h> |
38 |
#include <string.h> |
#include <string.h> |
39 |
|
|
|
#include "console.h" |
|
40 |
#include "cpu.h" |
#include "cpu.h" |
41 |
#include "devices.h" |
#include "devices.h" |
42 |
#include "diskimage.h" |
#include "diskimage.h" |
316 |
struct wdsc_data *d = extra; |
struct wdsc_data *d = extra; |
317 |
uint64_t idata = 0, odata = 0; |
uint64_t idata = 0, odata = 0; |
318 |
|
|
319 |
idata = memory_readmax64(cpu, data, len); |
if (writeflag == MEM_WRITE) |
320 |
|
idata = memory_readmax64(cpu, data, len); |
321 |
|
|
322 |
/* |
/* |
323 |
* All registers on the WDSC seem to be accessed by writing the |
* All registers on the WDSC seem to be accessed by writing the |