int nvhost_init_t30_support(struct nvhost_master *host, struct nvhost_chip_support *op) { int err; /* don't worry about cleaning up on failure... "remove" does it. */ err = nvhost_init_t30_channel_support(host, op); if (err) return err; err = host1x_init_cdma_support(op); if (err) return err; err = nvhost_init_t30_debug_support(op); if (err) return err; err = host1x_init_syncpt_support(host, op); if (err) return err; err = nvhost_init_t20_intr_support(op); if (err) return err; op->nvhost_dev.get_nvhost_device = t30_get_nvhost_device; op->nvhost_dev.alloc_nvhost_channel = t30_alloc_nvhost_channel; op->nvhost_dev.free_nvhost_channel = t30_free_nvhost_channel; return 0; }
int nvhost_init_t20_support(struct nvhost_master *host) { int err; /* don't worry about cleaning up on failure... "remove" does it. */ err = nvhost_init_t20_channel_support(host); if (err) return err; err = host1x_init_cdma_support(host); if (err) return err; err = nvhost_init_t20_debug_support(host); if (err) return err; err = host1x_init_syncpt_support(host); if (err) return err; err = nvhost_init_t20_intr_support(host); if (err) return err; return 0; }