diff options
Diffstat (limited to 'libc')
| -rw-r--r-- | libc/kernel/common/video/dsscomp.h | 33 | ||||
| -rw-r--r-- | libc/netbsd/resolv/res_cache.c | 5 |
2 files changed, 37 insertions, 1 deletions
diff --git a/libc/kernel/common/video/dsscomp.h b/libc/kernel/common/video/dsscomp.h index 37a4292..92fd789 100644 --- a/libc/kernel/common/video/dsscomp.h +++ b/libc/kernel/common/video/dsscomp.h @@ -103,6 +103,26 @@ struct omap_dss_cpr_coefs { /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ __s16 br, bg, bb; }; +struct dsscomp_videomode { + const char *name; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + __u32 refresh; + __u32 xres; + __u32 yres; + __u32 pixclock; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + __u32 left_margin; + __u32 right_margin; + __u32 upper_margin; + __u32 lower_margin; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + __u32 hsync_len; + __u32 vsync_len; + __u32 sync; + __u32 vmode; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + __u32 flag; +}; enum s3d_disp_type { S3D_DISP_NONE = 0, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ @@ -301,6 +321,16 @@ struct dsscomp_display_info { struct s3d_disp_info s3d_info; struct dss2_mgr_info mgr; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + __u16 width_in_mm; + __u16 height_in_mm; + __u32 modedb_len; + struct dsscomp_videomode modedb[]; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +}; +struct dsscomp_setup_display_data { + __u32 ix; + struct dsscomp_videomode mode; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ }; enum dsscomp_wait_phase { DSSCOMP_WAIT_PROGRAMMED = 1, @@ -319,7 +349,8 @@ struct dsscomp_wait_data { #define DSSCOMP_WB_COPY _IOW('O', 130, struct dsscomp_wb_copy_data) #define DSSCOMP_QUERY_DISPLAY _IOWR('O', 131, struct dsscomp_display_info) #define DSSCOMP_WAIT _IOW('O', 132, struct dsscomp_wait_data) -#define DSSCOMP_SETUP_DISPC _IOW('O', 127, struct dsscomp_setup_dispc_data) +#define DSSCOMP_SETUP_DISPC _IOW('O', 133, struct dsscomp_setup_dispc_data) /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define DSSCOMP_SETUP_DISPLAY _IOW('O', 134, struct dsscomp_setup_display_data) #endif diff --git a/libc/netbsd/resolv/res_cache.c b/libc/netbsd/resolv/res_cache.c index e3ceb5a..e88c221 100644 --- a/libc/netbsd/resolv/res_cache.c +++ b/libc/netbsd/resolv/res_cache.c @@ -1405,6 +1405,10 @@ _cache_remove_oldest( Cache* cache ) XLOG("%s: OLDEST NOT IN HTABLE ?", __FUNCTION__); return; } + if (DEBUG) { + XLOG("Cache full - removing oldest"); + XLOG_QUERY(oldest->query, oldest->querylen); + } _cache_remove_p(cache, lookup); } @@ -1453,6 +1457,7 @@ _resolv_cache_lookup( struct resolv_cache* cache, /* remove stale entries here */ if (now >= e->expires) { XLOG( " NOT IN CACHE (STALE ENTRY %p DISCARDED)", *lookup ); + XLOG_QUERY(e->query, e->querylen); _cache_remove_p(cache, lookup); goto Exit; } |
