コード例 #1
0
ファイル: devreg.c プロジェクト: chris-wood/yield
void _p0_cf_register(int first)
{
  int xlnk_init_done = cf_xlnk_open(first);
  if (xlnk_init_done == 0) {
    accel_register(&_sds__p0_get_0);
    accel_register(&_sds__p0_set_0);
    cf_xlnk_init(first);
  }
  else if (xlnk_init_done <0) {
    fprintf(stderr, "ERROR: unable to open xlnk %d\n", xlnk_init_done);
  }
  else {
  }
}
コード例 #2
0
ファイル: devreg.c プロジェクト: SaadTiwana/zturn-stuff
void _p0_cf_register(int first)
{
  int xlnk_init_done = cf_xlnk_open(first);
  if (xlnk_init_done == 0) {
    axi_dma_simple_register(&_p0_datamover_0);
    axi_dma_simple_register(&_p0_datamover_1);
    axi_dma_simple_register(&_p0_datamover_2);
    accel_register(&_sds__p0_mmult_0);
    cf_xlnk_init(first);
  }
  else if (xlnk_init_done <0) {
    fprintf(stderr, "ERROR: unable to open xlnk %d\n", xlnk_init_done);
  }
  else {
  }
}