Initial commit for AC97

This commit is contained in:
RichardG867
2021-07-11 16:58:52 -03:00
parent ee253ad0e9
commit b9c68bf277
13 changed files with 1115 additions and 29 deletions

View File

@@ -50,6 +50,7 @@ enum {
HASP_TYPE_SAVQUEST = 0
};
typedef struct {
const uint8_t *password, *prodinfo;
const uint8_t password_size, prodinfo_size;
@@ -266,7 +267,7 @@ hasp_read_status(void *priv)
static void *
hasp_init(void *lpt, int type)
{
hasp_t *dev = (hasp_t *) malloc(sizeof(hasp_t));
hasp_t *dev = malloc(sizeof(hasp_t));
memset(dev, 0, sizeof(hasp_t));
hasp_log("HASP: init(%d)\n", type);