class GdcDevice
Defined at line 41 of file ../../src/camera/drivers/hw_accel/gdc/gdc.h
This provides ZX_PROTOCOL_GDC.
Protected Members
port port_
Public Methods
void GdcDevice (const GdcDevice & )
Defined at line 43 of file ../../src/camera/drivers/hw_accel/gdc/gdc.h
GdcDevice & operator= (const GdcDevice & )
Defined at line 43 of file ../../src/camera/drivers/hw_accel/gdc/gdc.h
void GdcDevice (zx_device_t *parent,fdf::MmioBufferclk_mmio,fdf::MmioBuffergdc_mmio,std::stack<zx::vmo>gdc_config_contig_vmos,zx::interruptgdc_irq,zx::btibti,zx::portport)
Defined at line 44 of file ../../src/camera/drivers/hw_accel/gdc/gdc.h
void ~GdcDevice ()
Defined at line 55 of file ../../src/camera/drivers/hw_accel/gdc/gdc.h
zx_status_t Setup (void *ctx,zx_device_t *parent,std::unique_ptr<GdcDevice> *out)
Setup() is used to create an instance of GdcDevice.
It sets up the pdev
&
brings the GDC out of reset.
Defined at line 487 of file ../../src/camera/drivers/hw_accel/gdc/gdc.cc
void DdkRelease ()
Methods required by the ddk.
Defined at line 567 of file ../../src/camera/drivers/hw_accel/gdc/gdc.cc
void DdkUnbind (ddk::UnbindTxn txn)
Defined at line 562 of file ../../src/camera/drivers/hw_accel/gdc/gdc.cc
zx_status_t GdcInitTask (const buffer_collection_info_2_t *input_buffer_collection,const buffer_collection_info_2_t *output_buffer_collection,const image_format_2_t *input_image_format,const image_format_2_t *output_image_format_table_list,size_toutput_image_format_table_count,uint32_toutput_image_format_index,const gdc_config_info *config_vmo_list,size_tconfig_vmos_count,const hw_accel_frame_callback_t *frame_callback,const hw_accel_res_change_callback *res_callback,const hw_accel_remove_task_callback_t *task_remove_callback,uint32_t *out_task_index)
ZX_PROTOCOL_GDC (Refer to gdc.banjo for documentation).
Defined at line 68 of file ../../src/camera/drivers/hw_accel/gdc/gdc.cc
const fdf::MmioBuffer * gdc_mmio ()
Used for unit tests.
Defined at line 85 of file ../../src/camera/drivers/hw_accel/gdc/gdc.h
zx_status_t GdcProcessFrame (uint32_ttask_index,uint32_tinput_buffer_index,uint64_tcapture_timestamp)
Defined at line 390 of file ../../src/camera/drivers/hw_accel/gdc/gdc.cc
void GdcRemoveTask (uint32_t task_index)
Defined at line 443 of file ../../src/camera/drivers/hw_accel/gdc/gdc.cc
void GdcReleaseFrame (uint32_t task_index, uint32_t buffer_index)
Defined at line 467 of file ../../src/camera/drivers/hw_accel/gdc/gdc.cc
zx_status_t GdcSetOutputResolution (uint32_t task_index, uint32_t new_output_image_format_index)
Defined at line 362 of file ../../src/camera/drivers/hw_accel/gdc/gdc.cc
zx_status_t StartThread ()
Defined at line 421 of file ../../src/camera/drivers/hw_accel/gdc/gdc.cc
zx_status_t StopThread ()
Defined at line 428 of file ../../src/camera/drivers/hw_accel/gdc/gdc.cc
Enumerations
enum GdcOp
| Name | Value |
|---|---|
| GDC_OP_FRAME | 0 |
| GDC_OP_SETOUTPUTRES | 1 |
| GDC_OP_REMOVE_TASK | 2 |
Defined at line 90 of file ../../src/camera/drivers/hw_accel/gdc/gdc.h
Records
Friends
class GdcDeviceTester