1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- /*
- * Video Enhancement
- *
- * Author: Lin Xu <lin.xu@amlogic.com>
- * Bobby Yang <bo.yang@amlogic.com>
- *
- * Copyright (C) 2010 Amlogic Inc.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- */
- #ifndef __AM_VE_H
- #define __AM_VE_H
- #include "linux/amports/vframe.h"
- #include "linux/amports/ve.h"
- typedef struct ve_regs_s {
- unsigned int val : 32;
- unsigned int reg : 14;
- unsigned int port : 2; // port port_addr port_data remark
- // 0 NA NA direct access
- // 1 VPP_CHROMA_ADDR_PORT VPP_CHROMA_DATA_PORT CM port registers
- // 2 NA NA reserved
- // 3 NA NA reserved
- unsigned int bit : 5;
- unsigned int wid : 5;
- unsigned int mode : 1; // 0:read, 1:write
- unsigned int rsv : 5;
- } ve_regs_t;
- void ve_on_vs(vframe_t *vf);
- void ve_set_bext(struct ve_bext_s *p);
- void ve_set_dnlp(struct ve_dnlp_s *p);
- void ve_set_hsvs(struct ve_hsvs_s *p);
- void ve_set_ccor(struct ve_ccor_s *p);
- void ve_set_benh(struct ve_benh_s *p);
- void ve_set_demo(struct ve_demo_s *p);
- void ve_set_regs(struct ve_regs_s *p);
- #endif
|