Home | History | Annotate | Download | only in dist

Lines Matching defs:MEDIA

2  * media.h -
33 * Media is an abstraction of a disk device.
35 * A media object has the following visible attributes:
47 * XXX Should really split public media interface from "protected" interface.
59 /* those whose use media objects need just the pointer type */
60 typedef struct media *MEDIA;
62 /* those who define media objects need the struct and internal routine types */
63 typedef long (*media_read)(MEDIA m, long long offset, uint32_t count, void *address);
64 typedef long (*media_write)(MEDIA m, long long offset, uint32_t count, void *address);
65 typedef long (*media_close)(MEDIA m);
66 typedef long (*media_os_reload)(MEDIA m);
68 struct media {
69 long kind; /* kind of media - SCSI, IDE, etc. */
76 /* specific media kinds will add extra info */
79 /* those whose use media object iterators need just the pointer type */
82 /* those who define media object iterators need the struct and internal routine types */
95 long kind; /* kind of media - SCSI, IDE, etc. */
100 /* specific media kinds will add extra info */
117 /* those whose use media objects need these routines */
118 uint32_t media_granularity(MEDIA m);
119 long long media_total_size(MEDIA m);
120 long read_media(MEDIA m, long long offset, uint32_t count, void *address);
121 long write_media(MEDIA m, long long offset, uint32_t count, void *address);
122 void close_media(MEDIA m);
123 void os_reload_media(MEDIA m);
125 /* those who define media objects need these routines also */
127 MEDIA new_media(long size);
128 void delete_media(MEDIA m);
130 /* those whose use media object iterators need these routines */
135 /* those who define media object iterators need these routines also */