Lines Matching defs:agp_regdev
594 * "agp_regdev". Then it stores the system arc type in driver
598 * agp_regdev AGP devices registration struct pointer
606 lyr_init(agp_registered_dev_t *agp_regdev, ldi_ident_t agpgart_li)
614 ASSERT(agp_regdev);
616 bzero(agp_regdev, sizeof (agp_registered_dev_t));
617 agp_regdev->agprd_arctype = ARC_UNKNOWN;
624 master_hdlp = &agp_regdev->agprd_masterhdl;
625 target_hdlp = &agp_regdev->agprd_targethdl;
626 garts_dev = &agp_regdev->agprd_cpugarts;
652 agp_regdev->agprd_arctype = ARC_IGD810;
657 agp_regdev->agprd_arctype = ARC_IGD830;
674 agp_regdev->agprd_arctype = ARC_INTELAGP;
708 agp_regdev->agprd_arctype = ARC_AMD64AGP;
713 agp_target_unregister(&agp_regdev->agprd_targethdl);
715 agp_master_unregister(&agp_regdev->agprd_masterhdl);
721 agp_regdev->agprd_arctype = ARC_UNKNOWN;
726 lyr_end(agp_registered_dev_t *agp_regdev)
728 ASSERT(agp_regdev);
730 switch (agp_regdev->agprd_arctype) {
734 agp_master_unregister(&agp_regdev->agprd_masterhdl);
735 agp_target_unregister(&agp_regdev->agprd_targethdl);
739 agp_master_unregister(&agp_regdev->agprd_masterhdl);
740 agp_target_unregister(&agp_regdev->agprd_targethdl);
741 amd64_gart_unregister(&agp_regdev->agprd_cpugarts);
751 lyr_get_info(agp_kern_info_t *info, agp_registered_dev_t *agp_regdev)
760 ASSERT(agp_regdev);
762 switch (agp_regdev->agprd_arctype) {
764 hdl = agp_regdev->agprd_masterhdl;
773 hdl = agp_regdev->agprd_targethdl;
783 hdl = agp_regdev->agprd_masterhdl;
792 hdl = agp_regdev->agprd_targethdl;
824 hdl = agp_regdev->agprd_masterhdl;
832 hdl = agp_regdev->agprd_targethdl;
869 * agp_regdev AGP devices registration struct pointer
877 agp_registered_dev_t *agp_regdev)
887 ASSERT(agp_regdev);
901 hdl = agp_regdev->agprd_masterhdl;
927 * agp_regdev AGP devices struct pointer
935 agp_registered_dev_t *agp_regdev)
944 hdl = agp_regdev->agprd_masterhdl;
963 * agp_regdev AGP devices registration struct pointer
972 lyr_set_gart_addr(uint64_t phy_base, agp_registered_dev_t *agp_regdev)
978 ASSERT(agp_regdev);
979 switch (agp_regdev->agprd_arctype) {
987 hdl = agp_regdev->agprd_masterhdl;
998 hdl = agp_regdev->agprd_targethdl;
1011 for (gart_list = agp_regdev->agprd_cpugarts.gart_dev_list_head;
1034 lyr_set_agp_cmd(uint32_t cmd, agp_registered_dev_t *agp_regdev)
1039 ASSERT(agp_regdev);
1041 hdl = agp_regdev->agprd_targethdl;
1045 hdl = agp_regdev->agprd_masterhdl;
1054 lyr_config_devices(agp_registered_dev_t *agp_regdev)
1060 ASSERT(agp_regdev);
1061 switch (agp_regdev->agprd_arctype) {
1067 hdl = agp_regdev->agprd_targethdl;
1082 for (gart_list = agp_regdev->agprd_cpugarts.gart_dev_list_head;
1105 lyr_unconfig_devices(agp_registered_dev_t *agp_regdev)
1111 ASSERT(agp_regdev);
1112 switch (agp_regdev->agprd_arctype) {
1116 hdl = agp_regdev->agprd_masterhdl;
1122 hdl = agp_regdev->agprd_targethdl;
1129 for (gart_list = agp_regdev->agprd_cpugarts.gart_dev_list_head;
1158 * agp_regdev AGP devices struct pointer
1161 lyr_flush_gart_cache(agp_registered_dev_t *agp_regdev)
1166 ASSERT(agp_regdev);
1167 if (agp_regdev->agprd_arctype == ARC_AMD64AGP) {
1168 for (gart_list = agp_regdev->agprd_cpugarts.gart_dev_list_head;
1174 } else if (agp_regdev->agprd_arctype == ARC_INTELAGP) {
1175 hdl = agp_regdev->agprd_targethdl;