~jderose/ubuntu/raring/qemu/vde-again

« back to all changes in this revision

Viewing changes to hw/sd.h

  • Committer: Bazaar Package Importer
  • Author(s): Riku Voipio, Josh Triplett, Riku Voipio
  • Date: 2009-07-29 13:28:05 UTC
  • mfrom: (1.4.1 upstream)
  • mto: (12.1.1 sid) (10.1.13 sid)
  • mto: This revision was merged to the branch mainline in revision 13.
  • Revision ID: james.westby@ubuntu.com-20090729132805-cau7rfexh7dawyb8
Tags: 0.10.50+git20090729-1
[ Josh Triplett ]
* Remove myself from Uploaders.

[ Riku Voipio ]
* new upstream RC version
* nuke all linux-user patches (applied upstream)
  06_exit_segfault
  12_signal_powerpc_support
  21_net_soopts
  30_syscall_ipc
  32_syscall_sysctl
  35_syscall_sockaddr
  48_signal_terminate
  55_unmux_socketcall
* nuke all other applied-upstream patches
  01_nostrip (better version upstream)
  07_i386_exec_name (can be reintroduced in debian/rules)
  50_linuxbios_isa_bios_ram (shouldn't be needed anymore)
  51_linuxbios_piix_ram_size (applied)
  56_dhcp (crap)
  60_ppc_ld (reintroduce if needed)
  64_ppc_asm_constraints (ditto)
  66_tls_ld.patch (ditto)
  81_compile_dtb.patch (applied upstream)
  82_qemu-img_decimal (ditto)
* move to git
* simplify build rules
* Correct my email address

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
    sd_adtc,    /* addressed with data transfer */
60
60
} sd_cmd_type_t;
61
61
 
62
 
struct sd_request_s {
 
62
typedef struct {
63
63
    uint8_t cmd;
64
64
    uint32_t arg;
65
65
    uint8_t crc;
66
 
};
 
66
} SDRequest;
67
67
 
68
68
typedef struct SDState SDState;
69
69
 
70
70
SDState *sd_init(BlockDriverState *bs, int is_spi);
71
 
int sd_do_command(SDState *sd, struct sd_request_s *req,
 
71
int sd_do_command(SDState *sd, SDRequest *req,
72
72
                  uint8_t *response);
73
73
void sd_write_data(SDState *sd, uint8_t value);
74
74
uint8_t sd_read_data(SDState *sd);
76
76
int sd_data_ready(SDState *sd);
77
77
void sd_enable(SDState *sd, int enable);
78
78
 
79
 
/* ssi-sd.c */
80
 
int ssi_sd_xfer(void *opaque, int val);
81
 
void *ssi_sd_init(BlockDriverState *bs);
82
 
 
83
79
#endif  /* __hw_sd_h */