/* Unix SMB/Netbios implementation. Version 1.9. NT error code constants Copyright (C) Andrew Tridgell 1992-2000 Copyright (C) John H Terpstra 1996-2000 Copyright (C) Luke Kenneth Casson Leighton 1996-2000 Copyright (C) Paul Ashton 1998-2000 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifndef _NTERR_H #define _NTERR_H struct nt_err_code_struct { char *nt_errstr; __u32 nt_errcode; }; extern const struct nt_err_code_struct nt_errs[]; /* Win32 Status codes. */ #define NT_STATUS_MORE_ENTRIES 0x0105 #define NT_ERROR_INVALID_PARAMETER 0x0057 #define NT_ERROR_INSUFFICIENT_BUFFER 0x007a #define NT_STATUS_1804 0x070c #define NT_STATUS_NOTIFY_ENUM_DIR 0x010c /* * Win32 Error codes extracted using a loop in smbclient then printing a netmon * sniff to a file. */ #define NT_STATUS_OK 0x0000 #define NT_STATUS_SOME_UNMAPPED 0x0107 #define NT_STATUS_BUFFER_OVERFLOW 0x80000005 #define NT_STATUS_NO_MORE_ENTRIES 0x8000001a #define NT_STATUS_MEDIA_CHANGED 0x8000001c #define NT_STATUS_END_OF_MEDIA 0x8000001e #define NT_STATUS_MEDIA_CHECK 0x80000020 #define NT_STATUS_NO_DATA_DETECTED 0x8000001c #define NT_STATUS_STOPPED_ON_SYMLINK 0x8000002d #define NT_STATUS_DEVICE_REQUIRES_CLEANING 0x80000288 #define NT_STATUS_DEVICE_DOOR_OPEN 0x80000288 #define NT_STATUS_UNSUCCESSFUL 0xC0000000 | 0x0001 #define NT_STATUS_NOT_IMPLEMENTED 0xC0000000 | 0x0002 #define NT_STATUS_INVALID_INFO_CLASS 0xC0000000 | 0x0003 #define NT_STATUS_INFO_LENGTH_MISMATCH 0xC0000000 | 0x0004 #define NT_STATUS_ACCESS_VIOLATION 0xC0000000 | 0x0005 #define NT_STATUS_IN_PAGE_ERROR 0xC0000000 | 0x0006 #define NT_STATUS_PAGEFILE_QUOTA 0xC0000000 | 0x0007 #define NT_STATUS_INVALID_HANDLE 0xC0000000 | 0x0008 #define NT_STATUS_BAD_INITIAL_STACK 0xC0000000 | 0x0009 #define NT_STATUS_BAD_INITIAL_PC 0xC0000000 | 0x000a #define NT_STATUS_INVALID_CID 0xC0000000 | 0x000b #define NT_STATUS_TIMER_NOT_CANCELED 0xC0000000 | 0x000c #define NT_STATUS_INVALID_PARAMETER 0xC0000000 | 0x000d #define NT_STATUS_NO_SUCH_DEVICE 0xC0000000 | 0x000e #define NT_STATUS_NO_SUCH_FILE 0xC0000000 | 0x000f #define NT_STATUS_INVALID_DEVICE_REQUEST 0xC0000000 | 0x0010 #define NT_STATUS_END_OF_FILE 0xC0000000 | 0x0011 #define NT_STATUS_WRONG_VOLUME 0xC0000000 | 0x0012 #define NT_STATUS_NO_MEDIA_IN_DEVICE 0xC0000000 | 0x0013 #define NT_STATUS_UNRECOGNIZED_MEDIA 0xC0000000 | 0x0014 #define NT_STATUS_NONEXISTENT_SECTOR 0xC0000000 | 0x0015 #define NT_STATUS_MORE_PROCESSING_REQUIRED 0xC0000000 | 0x0016 #define NT_STATUS_NO_MEMORY 0xC0000000 | 0x0017 #define NT_STATUS_CONFLICTING_ADDRESSES 0xC0000000 | 0x0018 #define NT_STATUS_NOT_MAPPED_VIEW 0xC0000000 | 0x0019 #define NT_STATUS_UNABLE_TO_FREE_VM 0x80000000 | 0x001a #define NT_STATUS_UNABLE_TO_DELETE_SECTION 0xC0000000 | 0x001b #define NT_STATUS_INVALID_SYSTEM_SERVICE 0xC0000000 | 0x001c #define NT_STATUS_ILLEGAL_INSTRUCTION 0xC0000000 | 0x001d #define NT_STATUS_INVALID_LOCK_SEQUENCE 0xC0000000 | 0x001e #define NT_STATUS_INVALID_VIEW_SIZE 0xC0000000 | 0x001f #define NT_STATUS_INVALID_FILE_FOR_SECTION 0xC0000000 | 0x0020 #define NT_STATUS_ALREADY_COMMITTED 0xC0000000 | 0x0021 #define NT_STATUS_ACCESS_DENIED 0xC0000000 | 0x0022 #define NT_STATUS_BUFFER_TOO_SMALL 0xC0000000 | 0x0023 #define NT_STATUS_OBJECT_TYPE_MISMATCH 0xC0000000 | 0x0024 #define NT_STATUS_NONCONTINUABLE_EXCEPTION 0xC0000000 | 0x0025 #define NT_STATUS_INVALID_DISPOSITION 0xC0000000 | 0x0026 #define NT_STATUS_UNWIND 0xC0000000 | 0x0027 #define NT_STATUS_BAD_STACK 0xC0000000 | 0x0028 #define NT_STATUS_INVALID_UNWIND_TARGET 0xC0000000 | 0x0029 #define NT_STATUS_NOT_LOCKED 0xC0000000 | 0x002a #define NT_STATUS_PARITY_ERROR 0xC0000000 | 0x002b #define NT_STATUS_UNABLE_TO_DECOMMIT_VM 0xC0000000 | 0x002c #define NT_STATUS_NOT_COMMITTED 0xC0000000 | 0x002d #define NT_STATUS_INVALID_PORT_ATTRIBUTES 0xC0000000 | 0x002e #define NT_STATUS_PORT_MESSAGE_TOO_LONG 0xC0000000 | 0x002f #define NT_STATUS_INVALID_PARAMETER_MIX 0xC0000000 | 0x0030 #define NT_STATUS_INVALID_QUOTA_LOWER 0xC0000000 | 0x0031 #define NT_STATUS_DISK_CORRUPT_ERROR 0xC0000000 | 0x0032 #define NT_STATUS_OBJECT_NAME_INVALID 0xC0000000 | 0x0033 #define NT_STATUS_OBJECT_NAME_NOT_FOUND 0xC0000000 | 0x0034 #define NT_STATUS_OBJECT_NAME_COLLISION 0xC0000000 | 0x0035 #define NT_STATUS_HANDLE_NOT_WAITABLE 0xC0000000 | 0x0036 #define NT_STATUS_PORT_DISCONNECTED 0xC0000000 | 0x0037 #define NT_STATUS_DEVICE_ALREADY_ATTACHED 0xC0000000 | 0x0038 #define NT_STATUS_OBJECT_PATH_INVALID 0xC0000000 | 0x0039 #define NT_STATUS_OBJECT_PATH_NOT_FOUND 0xC0000000 | 0x003a #define NT_STATUS_OBJECT_PATH_SYNTAX_BAD 0xC0000000 | 0x003b #define NT_STATUS_DATA_OVERRUN 0xC0000000 | 0x003c #define NT_STATUS_DATA_LATE_ERROR 0xC0000000 | 0x003d #define NT_STATUS_DATA_ERROR 0xC0000000 | 0x003e #define NT_STATUS_CRC_ERROR 0xC0000000 | 0x003f #define NT_STATUS_SECTION_TOO_BIG 0xC0000000 | 0x0040 #define NT_STATUS_PORT_CONNECTION_REFUSED 0xC0000000 | 0x0041 #define NT_STATUS_INVALID_PORT_HANDLE 0xC0000000 | 0x0042 #define NT_STATUS_SHARING_VIOLATION 0xC0000000 | 0x0043 #define NT_STATUS_QUOTA_EXCEEDED 0xC0000000 | 0x0044 #define NT_STATUS_INVALID_PAGE_PROTECTION 0xC0000000 | 0x0045 #define NT_STATUS_MUTANT_NOT_OWNED 0xC0000000 | 0x0046 #define NT_STATUS_SEMAPHORE_LIMIT_EXCEEDED 0xC0000000 | 0x0047 #define NT_STATUS_PORT_ALREADY_SET 0xC0000000 | 0x0048 #define NT_STATUS_SECTION_NOT_IMAGE 0xC0000000 | 0x0049 #define NT_STATUS_SUSPEND_COUNT_EXCEEDED 0xC0000000 | 0x004a #define NT_STATUS_THREAD_IS_TERMINATING 0xC0000000 | 0x004b #define NT_STATUS_BAD_WORKING_SET_LIMIT 0xC0000000 | 0x004c #define NT_STATUS_INCOMPATIBLE_FILE_MAP 0xC0000000 | 0x004d #define NT_STATUS_SECTION_PROTECTION 0xC0000000 | 0x004e #define NT_STATUS_EAS_NOT_SUPPORTED 0xC0000000 | 0x004f #define NT_STATUS_EA_TOO_LARGE 0xC0000000 | 0x0050 #define NT_STATUS_NONEXISTENT_EA_ENTRY 0xC0000000 | 0x0051 #define NT_STATUS_NO_EAS_ON_FILE 0xC0000000 | 0x0052 #define NT_STATUS_EA_CORRUPT_ERROR 0xC0000000 | 0x0053 #define NT_STATUS_FILE_LOCK_CONFLICT 0xC0000000 | 0x0054 #define NT_STATUS_LOCK_NOT_GRANTED 0xC0000000 | 0x0055 #define NT_STATUS_DELETE_PENDING 0xC0000000 | 0x0056 #define NT_STATUS_CTL_FILE_NOT_SUPPORTED 0xC0000000 | 0x0057 #define NT_STATUS_UNKNOWN_REVISION 0xC0000000 | 0x0058 #define NT_STATUS_REVISION_MISMATCH 0xC0000000 | 0x0059 #define NT_STATUS_INVALID_OWNER 0xC0000000 | 0x005a #define NT_STATUS_INVALID_PRIMARY_GROUP 0xC0000000 | 0x005b #define NT_STATUS_NO_IMPERSONATION_TOKEN 0xC0000000 | 0x005c #define NT_STATUS_CANT_DISABLE_MANDATORY 0xC0000000 | 0x005d #define NT_STATUS_NO_LOGON_SERVERS 0xC0000000 | 0x005e #define NT_STATUS_NO_SUCH_LOGON_SESSION 0xC0000000 | 0x005f #define NT_STATUS_NO_SUCH_PRIVILEGE 0xC0000000 | 0x0060 #define NT_STATUS_PRIVILEGE_NOT_HELD 0xC0000000 | 0x0061 #define NT_STATUS_INVALID_ACCOUNT_NAME 0xC0000000 | 0x0062 #define NT_STATUS_USER_EXISTS 0xC0000000 | 0x0063 #define NT_STATUS_NO_SUCH_USER 0xC0000000 | 0x0064 #define NT_STATUS_GROUP_EXISTS 0xC0000000 | 0x0065 #define NT_STATUS_NO_SUCH_GROUP 0xC0000000 | 0x0066 #define NT_STATUS_MEMBER_IN_GROUP 0xC0000000 | 0x0067 #define NT_STATUS_MEMBER_NOT_IN_GROUP 0xC0000000 | 0x0068 #define NT_STATUS_LAST_ADMIN 0xC0000000 | 0x0069 #define NT_STATUS_WRONG_PASSWORD 0xC0000000 | 0x006a #define NT_STATUS_ILL_FORMED_PASSWORD 0xC0000000 | 0x006b #define NT_STATUS_PASSWORD_RESTRICTION 0xC0000000 | 0x006c #define NT_STATUS_LOGON_FAILURE 0xC0000000 | 0x006d #define NT_STATUS_ACCOUNT_RESTRICTION 0xC0000000 | 0x006e #define NT_STATUS_INVALID_LOGON_HOURS 0xC0000000 | 0x006f #define NT_STATUS_INVALID_WORKSTATION 0xC0000000 | 0x0070 #define NT_STATUS_PASSWORD_EXPIRED 0xC0000000 | 0x0071 #define NT_STATUS_ACCOUNT_DISABLED 0xC0000000 | 0x0072 #define NT_STATUS_NONE_MAPPED 0xC0000000 | 0x0073 #define NT_STATUS_TOO_MANY_LUIDS_REQUESTED 0xC0000000 | 0x0074 #define NT_STATUS_LUIDS_EXHAUSTED 0xC0000000 | 0x0075 #define NT_STATUS_INVALID_SUB_AUTHORITY 0xC0000000 | 0x0076 #define NT_STATUS_INVALID_ACL 0xC0000000 | 0x0077 #define NT_STATUS_INVALID_SID 0xC0000000 | 0x0078 #define NT_STATUS_INVALID_SECURITY_DESCR 0xC0000000 | 0x0079 #define NT_STATUS_PROCEDURE_NOT_FOUND 0xC0000000 | 0x007a #define NT_STATUS_INVALID_IMAGE_FORMAT 0xC0000000 | 0x007b #define NT_STATUS_NO_TOKEN 0xC0000000 | 0x007c #define NT_STATUS_BAD_INHERITANCE_ACL 0xC0000000 | 0x007d #define NT_STATUS_RANGE_NOT_LOCKED 0xC0000000 | 0x007e #define NT_STATUS_DISK_FULL 0xC0000000 | 0x007f #define NT_STATUS_SERVER_DISABLED 0xC0000000 | 0x0080 #define NT_STATUS_SERVER_NOT_DISABLED 0xC0000000 | 0x0081 #define NT_STATUS_TOO_MANY_GUIDS_REQUESTED 0xC0000000 | 0x0082 #define NT_STATUS_GUIDS_EXHAUSTED 0xC0000000 | 0x0083 #define NT_STATUS_INVALID_ID_AUTHORITY 0xC0000000 | 0x0084 #define NT_STATUS_AGENTS_EXHAUSTED 0xC0000000 | 0x0085 #define NT_STATUS_INVALID_VOLUME_LABEL 0xC0000000 | 0x0086 #define NT_STATUS_SECTION_NOT_EXTENDED 0xC0000000 | 0x0087 #define NT_STATUS_NOT_MAPPED_DATA 0xC0000000 | 0x0088 #define NT_STATUS_RESOURCE_DATA_NOT_FOUND 0xC0000000 | 0x0089 #define NT_STATUS_RESOURCE_TYPE_NOT_FOUND 0xC0000000 | 0x008a #define NT_STATUS_RESOURCE_NAME_NOT_FOUND 0xC0000000 | 0x008b #define NT_STATUS_ARRAY_BOUNDS_EXCEEDED 0xC0000000 | 0x008c #define NT_STATUS_FLOAT_DENORMAL_OPERAND 0xC0000000 | 0x008d #define NT_STATUS_FLOAT_DIVIDE_BY_ZERO 0xC0000000 | 0x008e #define NT_STATUS_FLOAT_INEXACT_RESULT 0xC0000000 | 0x008f #define NT_STATUS_FLOAT_INVALID_OPERATION 0xC0000000 | 0x0090 #define NT_STATUS_FLOAT_OVERFLOW 0xC0000000 | 0x0091 #define NT_STATUS_FLOAT_STACK_CHECK 0xC0000000 | 0x0092 #define NT_STATUS_FLOAT_UNDERFLOW 0xC0000000 | 0x0093 #define NT_STATUS_INTEGER_DIVIDE_BY_ZERO 0xC0000000 | 0x0094 #define NT_STATUS_INTEGER_OVERFLOW 0xC0000000 | 0x0095 #define NT_STATUS_PRIVILEGED_INSTRUCTION 0xC0000000 | 0x0096 #define NT_STATUS_TOO_MANY_PAGING_FILES 0xC0000000 | 0x0097 #define NT_STATUS_FILE_INVALID 0xC0000000 | 0x0098 #define NT_STATUS_ALLOTTED_SPACE_EXCEEDED 0xC0000000 | 0x0099 #define NT_STATUS_INSUFFICIENT_RESOURCES 0xC0000000 | 0x009a #define NT_STATUS_DFS_EXIT_PATH_FOUND 0xC0000000 | 0x009b #define NT_STATUS_DEVICE_DATA_ERROR 0xC0000000 | 0x009c #define NT_STATUS_DEVICE_NOT_CONNECTED 0xC0000000 | 0x009d #define NT_STATUS_DEVICE_POWER_FAILURE 0xC0000000 | 0x009e #define NT_STATUS_FREE_VM_NOT_AT_BASE 0xC0000000 | 0x009f #define NT_STATUS_MEMORY_NOT_ALLOCATED 0xC0000000 | 0x00a0 #define NT_STATUS_WORKING_SET_QUOTA 0xC0000000 | 0x00a1 #define NT_STATUS_MEDIA_WRITE_PROTECTED 0xC0000000 | 0x00a2 #define NT_STATUS_DEVICE_NOT_READY 0xC0000000 | 0x00a3 #define NT_STATUS_INVALID_GROUP_ATTRIBUTES 0xC0000000 | 0x00a4 #define NT_STATUS_BAD_IMPERSONATION_LEVEL 0xC0000000 | 0x00a5 #define NT_STATUS_CANT_OPEN_ANONYMOUS 0xC0000000 | 0x00a6 #define NT_STATUS_BAD_VALIDATION_CLASS 0xC0000000 | 0x00a7 #define NT_STATUS_BAD_TOKEN_TYPE 0xC0000000 | 0x00a8 #define NT_STATUS_BAD_MASTER_BOOT_RECORD 0xC0000000 | 0x00a9 #define NT_STATUS_INSTRUCTION_MISALIGNMENT 0xC0000000 | 0x00aa #define NT_STATUS_INSTANCE_NOT_AVAILABLE 0xC0000000 | 0x00ab #define NT_STATUS_PIPE_NOT_AVAILABLE 0xC0000000 | 0x00ac #define NT_STATUS_INVALID_PIPE_STATE 0xC0000000 | 0x00ad #define NT_STATUS_PIPE_BUSY 0xC0000000 | 0x00ae #define NT_STATUS_ILLEGAL_FUNCTION 0xC0000000 | 0x00af #define NT_STATUS_PIPE_DISCONNECTED 0xC0000000 | 0x00b0 #define NT_STATUS_PIPE_CLOSING 0xC0000000 | 0x00b1 #define NT_STATUS_PIPE_CONNECTED 0xC0000000 | 0x00b2 #define NT_STATUS_PIPE_LISTENING 0xC0000000 | 0x00b3 #define NT_STATUS_INVALID_READ_MODE 0xC0000000 | 0x00b4 #define NT_STATUS_IO_TIMEOUT 0xC0000000 | 0x00b5 #define NT_STATUS_FILE_FORCED_CLOSED 0xC0000000 | 0x00b6 #define NT_STATUS_PROFILING_NOT_STARTED 0xC0000000 | 0x00b7 #define NT_STATUS_PROFILING_NOT_STOPPED 0xC0000000 | 0x00b8 #define NT_STATUS_COULD_NOT_INTERPRET 0xC0000000 | 0x00b9 #define NT_STATUS_FILE_IS_A_DIRECTORY 0xC0000000 | 0x00ba #define NT_STATUS_NOT_SUPPORTED 0xC0000000 | 0x00bb #define NT_STATUS_REMOTE_NOT_LISTENING 0xC0000000 | 0x00bc #define NT_STATUS_DUPLICATE_NAME 0xC0000000 | 0x00bd #define NT_STATUS_BAD_NETWORK_PATH 0xC0000000 | 0x00be #define NT_STATUS_NETWORK_BUSY 0xC0000000 | 0x00bf #define NT_STATUS_DEVICE_DOES_NOT_EXIST 0xC0000000 | 0x00c0 #define NT_STATUS_TOO_MANY_COMMANDS 0xC0000000 | 0x00c1 #define NT_STATUS_ADAPTER_HARDWARE_ERROR 0xC0000000 | 0x00c2 #define NT_STATUS_INVALID_NETWORK_RESPONSE 0xC0000000 | 0x00c3 #define NT_STATUS_UNEXPECTED_NETWORK_ERROR 0xC0000000 | 0x00c4 #define NT_STATUS_BAD_REMOTE_ADAPTER 0xC0000000 | 0x00c5 #define NT_STATUS_PRINT_QUEUE_FULL 0xC0000000 | 0x00c6 #define NT_STATUS_NO_SPOOL_SPACE 0xC0000000 | 0x00c7 #define NT_STATUS_PRINT_CANCELLED 0xC0000000 | 0x00c8 #define NT_STATUS_NETWORK_NAME_DELETED 0xC0000000 | 0x00c9 #define NT_STATUS_NETWORK_ACCESS_DENIED 0xC0000000 | 0x00ca #define NT_STATUS_BAD_DEVICE_TYPE 0xC0000000 | 0x00cb #define NT_STATUS_BAD_NETWORK_NAME 0xC0000000 | 0x00cc #define NT_STATUS_TOO_MANY_NAMES 0xC0000000 | 0x00cd #define NT_STATUS_TOO_MANY_SESSIONS 0xC0000000 | 0x00ce #define NT_STATUS_SHARING_PAUSED 0xC0000000 | 0x00cf #define NT_STATUS_REQUEST_NOT_ACCEPTED 0xC0000000 | 0x00d0 #define NT_STATUS_REDIRECTOR_PAUSED 0xC0000000 | 0x00d1 #define NT_STATUS_NET_WRITE_FAULT 0xC0000000 | 0x00d2 #define NT_STATUS_PROFILING_AT_LIMIT 0xC0000000 | 0x00d3 #define NT_STATUS_NOT_SAME_DEVICE 0xC0000000 | 0x00d4 #define NT_STATUS_FILE_RENAMED 0xC0000000 | 0x00d5 #define NT_STATUS_VIRTUAL_CIRCUIT_CLOSED 0xC0000000 | 0x00d6 #define NT_STATUS_NO_SECURITY_ON_OBJECT 0xC0000000 | 0x00d7 #define NT_STATUS_CANT_WAIT 0xC0000000 | 0x00d8 #define NT_STATUS_PIPE_EMPTY 0xC0000000 | 0x00d9 #define NT_STATUS_CANT_ACCESS_DOMAIN_INFO 0xC0000000 | 0x00da #define NT_STATUS_CANT_TERMINATE_SELF 0xC0000000 | 0x00db #define NT_STATUS_INVALID_SERVER_STATE 0xC0000000 | 0x00dc #define NT_STATUS_INVALID_DOMAIN_STATE 0xC0000000 | 0x00dd #define NT_STATUS_INVALID_DOMAIN_ROLE 0xC0000000 | 0x00de #define NT_STATUS_NO_SUCH_DOMAIN 0xC0000000 | 0x00df #define NT_STATUS_DOMAIN_EXISTS 0xC0000000 | 0x00e0 #define NT_STATUS_DOMAIN_LIMIT_EXCEEDED 0xC0000000 | 0x00e1 #define NT_STATUS_OPLOCK_NOT_GRANTED 0xC0000000 | 0x00e2 #define NT_STATUS_INVALID_OPLOCK_PROTOCOL 0xC0000000 | 0x00e3 #define NT_STATUS_INTERNAL_DB_CORRUPTION 0xC0000000 | 0x00e4 #define NT_STATUS_INTERNAL_ERROR 0xC0000000 | 0x00e5 #define NT_STATUS_GENERIC_NOT_MAPPED 0xC0000000 | 0x00e6 #define NT_STATUS_BAD_DESCRIPTOR_FORMAT 0xC0000000 | 0x00e7 #define NT_STATUS_INVALID_USER_BUFFER 0xC0000000 | 0x00e8 #define NT_STATUS_UNEXPECTED_IO_ERROR 0xC0000000 | 0x00e9 #define NT_STATUS_UNEXPECTED_MM_CREATE_ERR 0xC0000000 | 0x00ea #define NT_STATUS_UNEXPECTED_MM_MAP_ERROR 0xC0000000 | 0x00eb #define NT_STATUS_UNEXPECTED_MM_EXTEND_ERR 0xC0000000 | 0x00ec #define NT_STATUS_NOT_LOGON_PROCESS 0xC0000000 | 0x00ed #define NT_STATUS_LOGON_SESSION_EXISTS 0xC0000000 | 0x00ee #define NT_STATUS_INVALID_PARAMETER_1 0xC0000000 | 0x00ef #define NT_STATUS_INVALID_PARAMETER_2 0xC0000000 | 0x00f0 #define NT_STATUS_INVALID_PARAMETER_3 0xC0000000 | 0x00f1 #define NT_STATUS_INVALID_PARAMETER_4 0xC0000000 | 0x00f2 #define NT_STATUS_INVALID_PARAMETER_5 0xC0000000 | 0x00f3 #define NT_STATUS_INVALID_PARAMETER_6 0xC0000000 | 0x00f4 #define NT_STATUS_INVALID_PARAMETER_7 0xC0000000 | 0x00f5 #define NT_STATUS_INVALID_PARAMETER_8 0xC0000000 | 0x00f6 #define NT_STATUS_INVALID_PARAMETER_9 0xC0000000 | 0x00f7 #define NT_STATUS_INVALID_PARAMETER_10 0xC0000000 | 0x00f8 #define NT_STATUS_INVALID_PARAMETER_11 0xC0000000 | 0x00f9 #define NT_STATUS_INVALID_PARAMETER_12 0xC0000000 | 0x00fa #define NT_STATUS_REDIRECTOR_NOT_STARTED 0xC0000000 | 0x00fb #define NT_STATUS_REDIRECTOR_STARTED 0xC0000000 | 0x00fc #define NT_STATUS_STACK_OVERFLOW 0xC0000000 | 0x00fd #define NT_STATUS_NO_SUCH_PACKAGE 0xC0000000 | 0x00fe #define NT_STATUS_BAD_FUNCTION_TABLE 0xC0000000 | 0x00ff #define NT_STATUS_DIRECTORY_NOT_EMPTY 0xC0000000 | 0x0101 #define NT_STATUS_FILE_CORRUPT_ERROR 0xC0000000 | 0x0102 #define NT_STATUS_NOT_A_DIRECTORY 0xC0000000 | 0x0103 #define NT_STATUS_BAD_LOGON_SESSION_STATE 0xC0000000 | 0x0104 #define NT_STATUS_LOGON_SESSION_COLLISION 0xC0000000 | 0x0105 #define NT_STATUS_NAME_TOO_LONG 0xC0000000 | 0x0106 #define NT_STATUS_FILES_OPEN 0xC0000000 | 0x0107 #define NT_STATUS_CONNECTION_IN_USE 0xC0000000 | 0x0108 #define NT_STATUS_MESSAGE_NOT_FOUND 0xC0000000 | 0x0109 #define NT_STATUS_PROCESS_IS_TERMINATING 0xC0000000 | 0x010a #define NT_STATUS_INVALID_LOGON_TYPE 0xC0000000 | 0x010b #define NT_STATUS_NO_GUID_TRANSLATION 0xC0000000 | 0x010c #define NT_STATUS_CANNOT_IMPERSONATE 0xC0000000 | 0x010d #define NT_STATUS_IMAGE_ALREADY_LOADED 0xC0000000 | 0x010e #define NT_STATUS_ABIOS_NOT_PRESENT 0xC0000000 | 0x010f #define NT_STATUS_ABIOS_LID_NOT_EXIST 0xC0000000 | 0x0110 #define NT_STATUS_ABIOS_LID_ALREADY_OWNED 0xC0000000 | 0x0111 #define NT_STATUS_ABIOS_NOT_LID_OWNER 0xC0000000 | 0x0112 #define NT_STATUS_ABIOS_INVALID_COMMAND 0xC0000000 | 0x0113 #define NT_STATUS_ABIOS_INVALID_LID 0xC0000000 | 0x0114 #define NT_STATUS_ABIOS_SELECTOR_NOT_AVAILABLE 0xC0000000 | 0x0115 #define NT_STATUS_ABIOS_INVALID_SELECTOR 0xC0000000 | 0x0116 #define NT_STATUS_NO_LDT 0xC0000000 | 0x0117 #define NT_STATUS_INVALID_LDT_SIZE 0xC0000000 | 0x0118 #define NT_STATUS_INVALID_LDT_OFFSET 0xC0000000 | 0x0119 #define NT_STATUS_INVALID_LDT_DESCRIPTOR 0xC0000000 | 0x011a #define NT_STATUS_INVALID_IMAGE_NE_FORMAT 0xC0000000 | 0x011b #define NT_STATUS_RXACT_INVALID_STATE 0xC0000000 | 0x011c #define NT_STATUS_RXACT_COMMIT_FAILURE 0xC0000000 | 0x011d #define NT_STATUS_MAPPED_FILE_SIZE_ZERO 0xC0000000 | 0x011e #define NT_STATUS_TOO_MANY_OPENED_FILES 0xC00
/*
* lms501kf03 TFT LCD panel driver.
*
* Copyright (c) 2012 Samsung Electronics Co., Ltd.
* Author: Jingoo Han <jg1.han@samsung.com>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*/
#include <linux/backlight.h>
#include <linux/delay.h>
#include <linux/fb.h>
#include <linux/gpio.h>
#include <linux/lcd.h>
#include <linux/module.h>
#include <linux/spi/spi.h>
#include <linux/wait.h>
#define COMMAND_ONLY 0x00
#define DATA_ONLY 0x01
struct lms501kf03 {
struct device *dev;
struct spi_device *spi;
unsigned int power;
struct lcd_device *ld;
struct lcd_platform_data *lcd_pd;
};
static const unsigned char seq_password[] = {
0xb9, 0xff, 0x83, 0x69,
};
static const unsigned char seq_power[] = {
0xb1, 0x01, 0x00, 0x34, 0x06, 0x00, 0x14, 0x14, 0x20, 0x28,
<