示例#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
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 {
  }
}