Initial commit for scsiapi and Seagate FireCuda Gaming External HDD controller
This commit is contained in:
parent
f6e0996250
commit
9cf453008d
10 changed files with 1170 additions and 0 deletions
68
scsiapi/scsiapi_macos.c
Normal file
68
scsiapi/scsiapi_macos.c
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
/*---------------------------------------------------------*\
|
||||
| scsiapi_macos.c |
|
||||
| |
|
||||
| Cross-platform SCSI access library |
|
||||
| MacOS implementation (NON-FUNCTIONAL) |
|
||||
| |
|
||||
| Adam Honse <calcprogrammer1@gmail.com> 7/28/2023 |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#pragma once
|
||||
|
||||
/*---------------------------------------------------------*\
|
||||
| Includes |
|
||||
\*---------------------------------------------------------*/
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "scsiapi.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*---------------------------------------------------------*\
|
||||
| Functions |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
void scsi_close(struct scsi_device * dev)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
struct scsi_device_info * scsi_enumerate(const char * vendor, const char * product)
|
||||
{
|
||||
return(NULL);
|
||||
}
|
||||
|
||||
void scsi_free_enumeration(struct scsi_device_info * devs)
|
||||
{
|
||||
struct scsi_device_info * dev = devs;
|
||||
|
||||
while(dev)
|
||||
{
|
||||
struct scsi_device_info * next = dev->next;
|
||||
|
||||
free(dev->path);
|
||||
free(dev->vendor);
|
||||
free(dev->product);
|
||||
free(dev);
|
||||
|
||||
dev = next;
|
||||
}
|
||||
}
|
||||
|
||||
struct scsi_device * scsi_open_path(const char *path)
|
||||
{
|
||||
return(NULL);
|
||||
}
|
||||
|
||||
int scsi_write(struct scsi_device * dev, const unsigned char * data, size_t data_length, const unsigned char * cdb, size_t cdb_length, unsigned char * sense, size_t sense_length)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue