|
@@ -162,6 +162,10 @@ static int cpu5wdt_ioctl(struct inode *inode, struct file *file, unsigned int cm
|
|
if ( copy_to_user(argp, &value, sizeof(int)) )
|
|
if ( copy_to_user(argp, &value, sizeof(int)) )
|
|
return -EFAULT;
|
|
return -EFAULT;
|
|
break;
|
|
break;
|
|
|
|
+ case WDIOC_GETBOOTSTATUS:
|
|
|
|
+ if ( copy_to_user(argp, &value, sizeof(int)) )
|
|
|
|
+ retrun -EFAULT;
|
|
|
|
+ break;
|
|
case WDIOC_GETSUPPORT:
|
|
case WDIOC_GETSUPPORT:
|
|
if ( copy_to_user(argp, &ident, sizeof(ident)) )
|
|
if ( copy_to_user(argp, &ident, sizeof(ident)) )
|
|
return -EFAULT;
|
|
return -EFAULT;
|