frontend.c (b981d8b3f5e008ff10d993be633ad00564fc22cd) | frontend.c (a13af4b4d842da6d7065b8c73fa8f0ac58fea1b6) |
---|---|
1/* 2 * AGPGART driver frontend 3 * Copyright (C) 2004 Silicon Graphics, Inc. 4 * Copyright (C) 2002-2003 Dave Jones 5 * Copyright (C) 1999 Jeff Hartmann 6 * Copyright (C) 1999 Precision Insight, Inc. 7 * Copyright (C) 1999 Xi Graphics, Inc. 8 * --- 946 unchanged lines hidden (view full) --- 955 memory = agp_find_mem_by_key(unbind.key); 956 957 if (memory == NULL) 958 return -EINVAL; 959 960 return agp_unbind_memory(memory); 961} 962 | 1/* 2 * AGPGART driver frontend 3 * Copyright (C) 2004 Silicon Graphics, Inc. 4 * Copyright (C) 2002-2003 Dave Jones 5 * Copyright (C) 1999 Jeff Hartmann 6 * Copyright (C) 1999 Precision Insight, Inc. 7 * Copyright (C) 1999 Xi Graphics, Inc. 8 * --- 946 unchanged lines hidden (view full) --- 955 memory = agp_find_mem_by_key(unbind.key); 956 957 if (memory == NULL) 958 return -EINVAL; 959 960 return agp_unbind_memory(memory); 961} 962 |
963int agpioc_chipset_flush_wrap(struct agp_file_private *priv) 964{ 965 DBG(""); 966 agp_flush_chipset(agp_bridge); 967 return 0; 968} 969 |
|
963static int agp_ioctl(struct inode *inode, struct file *file, 964 unsigned int cmd, unsigned long arg) 965{ 966 struct agp_file_private *curr_priv = file->private_data; 967 int ret_val = -ENOTTY; 968 969 DBG("priv=%p, cmd=%x", curr_priv, cmd); 970 mutex_lock(&(agp_fe.agp_mutex)); --- 57 unchanged lines hidden (view full) --- 1028 1029 case AGPIOC_BIND: 1030 ret_val = agpioc_bind_wrap(curr_priv, (void __user *) arg); 1031 break; 1032 1033 case AGPIOC_UNBIND: 1034 ret_val = agpioc_unbind_wrap(curr_priv, (void __user *) arg); 1035 break; | 970static int agp_ioctl(struct inode *inode, struct file *file, 971 unsigned int cmd, unsigned long arg) 972{ 973 struct agp_file_private *curr_priv = file->private_data; 974 int ret_val = -ENOTTY; 975 976 DBG("priv=%p, cmd=%x", curr_priv, cmd); 977 mutex_lock(&(agp_fe.agp_mutex)); --- 57 unchanged lines hidden (view full) --- 1035 1036 case AGPIOC_BIND: 1037 ret_val = agpioc_bind_wrap(curr_priv, (void __user *) arg); 1038 break; 1039 1040 case AGPIOC_UNBIND: 1041 ret_val = agpioc_unbind_wrap(curr_priv, (void __user *) arg); 1042 break; |
1043 1044 case AGPIOC_CHIPSET_FLUSH: 1045 ret_val = agpioc_chipset_flush_wrap(curr_priv); 1046 break; |
|
1036 } 1037 1038ioctl_out: 1039 DBG("ioctl returns %d\n", ret_val); 1040 mutex_unlock(&(agp_fe.agp_mutex)); 1041 return ret_val; 1042} 1043 --- 38 unchanged lines hidden --- | 1047 } 1048 1049ioctl_out: 1050 DBG("ioctl returns %d\n", ret_val); 1051 mutex_unlock(&(agp_fe.agp_mutex)); 1052 return ret_val; 1053} 1054 --- 38 unchanged lines hidden --- |