]> Git Repo - qemu.git/blobdiff - hw/sd.h
Merge remote branch 'kwolf/for-anthony' into staging
[qemu.git] / hw / sd.h
diff --git a/hw/sd.h b/hw/sd.h
index 9416df0db0a9a64265a743b3a1b4384dba929d04..ac4b7c4dfa2b0fd20a316634dc6f84e90334236e 100644 (file)
--- a/hw/sd.h
+++ b/hw/sd.h
@@ -59,20 +59,21 @@ typedef enum {
     sd_adtc,   /* addressed with data transfer */
 } sd_cmd_type_t;
 
-struct sd_request_s {
+typedef struct {
     uint8_t cmd;
     uint32_t arg;
     uint8_t crc;
-};
+} SDRequest;
 
 typedef struct SDState SDState;
 
-SDState *sd_init(BlockDriverState *bs);
-int sd_do_command(SDState *sd, struct sd_request_s *req,
+SDState *sd_init(BlockDriverState *bs, int is_spi);
+int sd_do_command(SDState *sd, SDRequest *req,
                   uint8_t *response);
 void sd_write_data(SDState *sd, uint8_t value);
 uint8_t sd_read_data(SDState *sd);
 void sd_set_cb(SDState *sd, qemu_irq readonly, qemu_irq insert);
 int sd_data_ready(SDState *sd);
+void sd_enable(SDState *sd, int enable);
 
 #endif /* __hw_sd_h */
This page took 0.02136 seconds and 4 git commands to generate.