xref: /openbmc/linux/fs/afs/afs_cm.h (revision 75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37)
1*2874c5fdSThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-or-later */
208e0e7c8SDavid Howells /* AFS Cache Manager definitions
308e0e7c8SDavid Howells  *
408e0e7c8SDavid Howells  * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved.
508e0e7c8SDavid Howells  * Written by David Howells (dhowells@redhat.com)
608e0e7c8SDavid Howells  */
708e0e7c8SDavid Howells 
808e0e7c8SDavid Howells #ifndef AFS_CM_H
908e0e7c8SDavid Howells #define AFS_CM_H
1008e0e7c8SDavid Howells 
1108e0e7c8SDavid Howells #define AFS_CM_PORT		7001	/* AFS file server port */
1208e0e7c8SDavid Howells #define CM_SERVICE		1	/* AFS File Service ID */
1308e0e7c8SDavid Howells 
1408e0e7c8SDavid Howells enum AFS_CM_Operations {
1508e0e7c8SDavid Howells 	CBCallBack		= 204,	/* break callback promises */
1608e0e7c8SDavid Howells 	CBInitCallBackState	= 205,	/* initialise callback state */
1708e0e7c8SDavid Howells 	CBProbe			= 206,	/* probe client */
1808e0e7c8SDavid Howells 	CBGetLock		= 207,	/* get contents of CM lock table */
1908e0e7c8SDavid Howells 	CBGetCE			= 208,	/* get cache file description */
2008e0e7c8SDavid Howells 	CBGetXStatsVersion	= 209,	/* get version of extended statistics */
2108e0e7c8SDavid Howells 	CBGetXStats		= 210,	/* get contents of extended statistics data */
22c35eccb1SDavid Howells 	CBInitCallBackState3	= 213,	/* initialise callback state, version 3 */
239396d496SDavid Howells 	CBProbeUuid		= 214,	/* check the client hasn't rebooted */
247c80bcceSDavid Howells 	CBTellMeAboutYourself	= 65538, /* get client capabilities */
2508e0e7c8SDavid Howells };
2608e0e7c8SDavid Howells 
27b908fe6bSDavid Howells #define AFS_CAP_ERROR_TRANSLATION	0x1
28b908fe6bSDavid Howells 
2908e0e7c8SDavid Howells #endif /* AFS_FS_H */
30