int flink_core_open(flink_dev* fdev,struct flink_bus_ops* bus_channel) { //fdev = flink_device_alloc(); flink_set_bus(bus_channel); flink_device_init(fdev, bus_channel); // TODO: Use other bus_ops for other channel flink_device_add(fdev); // creates device nodes return 0; }
int flink_core_open(flink_dev* fdev) { //fdev = flink_device_alloc(); flink_set_bus(&avalon_bus_ops); flink_device_init(fdev, &avalon_bus_ops); // TODO: Use other bus_ops for other channel flink_device_add(fdev); // creates device nodes return 0; }