4 struct device_color_info_s {
8 color_enc_sep_lin_t separable_and_linear;
13 struct device_procs_s {
14 int (*open_device) ();
15 void (*get_initial_matrix) ();
16 int (*sync_output) ();
17 int (*output_page) ();
18 int (*close_device) ();
19 long long (*map_rgb_color) ();
20 int (*map_color_rgb) ();
21 void *(*ret_devn_params) ();
23 typedef struct inferno_device_s {
26 struct device_color_info_s color_info;
27 struct device_procs_s orig_procs;
31 long long inferno_rgb2cmap(void *dev)
34 bdev = (inferno_device *) dev;