Skip to content
Permalink
Browse files

sys/linux: fix floppy description

* sys/linux: fix floppy description

Fix typo in the FDGETPRM ioctl.

* sys/linux: extract && generate for floppy

Signed-off-by: Denis Efremov <efremov@linux.com>
  • Loading branch information...
evdenis authored and dvyukov committed Jul 5, 2019
1 parent 429efa1 commit a0626693a098dbaff87bc205cc5c581035584448
@@ -70,7 +70,7 @@

#if GOARCH_386
#define GOARCH "386"
#define SYZ_REVISION "519a941704236f17152699ef7577ed9251da786f"
#define SYZ_REVISION "e1d571d7656738305806faf2f939b56bd48fb61c"
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
#define SYZ_EXECUTOR_USES_SHMEM 1
#define SYZ_PAGE_SIZE 4096
@@ -80,7 +80,7 @@

#if GOARCH_amd64
#define GOARCH "amd64"
#define SYZ_REVISION "dc711d6c1782cacc83730da773968ee6bfa6e1c9"
#define SYZ_REVISION "036bfe5c68bb7bfe0cc9b16821d139bf4e784047"
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
#define SYZ_EXECUTOR_USES_SHMEM 1
#define SYZ_PAGE_SIZE 4096
@@ -90,7 +90,7 @@

#if GOARCH_arm
#define GOARCH "arm"
#define SYZ_REVISION "6ba869e0323201b00a9f14cbf24407b0cfcfeb51"
#define SYZ_REVISION "4f93d6fd1be9e81a5269d0c391896732dcf1b956"
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
#define SYZ_EXECUTOR_USES_SHMEM 1
#define SYZ_PAGE_SIZE 4096
@@ -100,7 +100,7 @@

#if GOARCH_arm64
#define GOARCH "arm64"
#define SYZ_REVISION "b21a45c75aa1ed547ed3f71caf5a0aec678d0666"
#define SYZ_REVISION "c7faa6f5df21fe6bb7786a037d98a97089215d07"
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
#define SYZ_EXECUTOR_USES_SHMEM 1
#define SYZ_PAGE_SIZE 4096
@@ -110,7 +110,7 @@

#if GOARCH_ppc64le
#define GOARCH "ppc64le"
#define SYZ_REVISION "b162f5cf7ce409d50e412b61883fbe10a40d934b"
#define SYZ_REVISION "25180460bf4bd8392ca8a027cc38042d376a10cd"
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
#define SYZ_EXECUTOR_USES_SHMEM 1
#define SYZ_PAGE_SIZE 4096
@@ -15,7 +15,7 @@ ioctl$FLOPPY_FDEJECT(fd fd_floppy, cmd const[FDEJECT])
ioctl$FLOPPY_FDCLRPRM(fd fd_floppy, cmd const[FDCLRPRM])
ioctl$FLOPPY_FDSETPRM(fd fd_floppy, cmd const[FDSETPRM], arg ptr[in, floppy_struct])
ioctl$FLOPPY_FDDEFPRM(fd fd_floppy, cmd const[FDDEFPRM], arg ptr[in, floppy_struct])
ioctl$FLOPPY_FDGETPRM(fd fd_floppy, cmd const[FDDEFPRM], arg ptr[out, floppy_struct])
ioctl$FLOPPY_FDGETPRM(fd fd_floppy, cmd const[FDGETPRM], arg ptr[out, floppy_struct])
ioctl$FLOPPY_FDMSGON(fd fd_floppy, cmd const[FDMSGON])
ioctl$FLOPPY_FDMSGOFF(fd fd_floppy, cmd const[FDMSGOFF])
ioctl$FLOPPY_FDFMTBEG(fd fd_floppy, cmd const[FDFMTBEG])
@@ -11,6 +11,7 @@ FDGETDRVSTAT = 2150892050
FDGETDRVTYP = 2148532751
FDGETFDCSTAT = 2149581333
FDGETMAXERRS = 2148794894
FDGETPRM = 2149319172
FDMSGOFF = 582
FDMSGON = 581
FDPOLLDRVSTAT = 2150892051
@@ -11,6 +11,7 @@ FDGETDRVSTAT = 2152727058
FDGETDRVTYP = 2148532751
FDGETFDCSTAT = 2150105621
FDGETMAXERRS = 2148794894
FDGETPRM = 2149581316
FDMSGOFF = 582
FDMSGON = 581
FDPOLLDRVSTAT = 2152727059
@@ -11,6 +11,7 @@ FDGETDRVSTAT = 2150892050
FDGETDRVTYP = 2148532751
FDGETFDCSTAT = 2149581333
FDGETMAXERRS = 2148794894
FDGETPRM = 2149319172
FDMSGOFF = 582
FDMSGON = 581
FDPOLLDRVSTAT = 2150892051
@@ -11,6 +11,7 @@ FDGETDRVSTAT = 2152727058
FDGETDRVTYP = 2148532751
FDGETFDCSTAT = 2150105621
FDGETMAXERRS = 2148794894
FDGETPRM = 2149581316
FDMSGOFF = 582
FDMSGON = 581
FDPOLLDRVSTAT = 2152727059
@@ -11,6 +11,7 @@ FDGETDRVSTAT = 1078985234
FDGETDRVTYP = 1074790927
FDGETFDCSTAT = 1076363797
FDGETMAXERRS = 1075053070
FDGETPRM = 1075839492
FDMSGOFF = 536871494
FDMSGON = 536871493
FDPOLLDRVSTAT = 1078985235
}},
{NR: 54, Name: "ioctl$FLOPPY_FDGETPRM", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_floppy", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1075577411},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2149319172},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "floppy_struct", Dir: 1}}},
}},
{NR: 54, Name: "ioctl$FLOPPY_FDMSGOFF", CallName: "ioctl", MissingArgs: 1, Args: []Type{
{Name: "FDGETDRVTYP", Value: 2148532751},
{Name: "FDGETFDCSTAT", Value: 2149581333},
{Name: "FDGETMAXERRS", Value: 2148794894},
{Name: "FDGETPRM", Value: 2149319172},
{Name: "FDMSGOFF", Value: 582},
{Name: "FDMSGON", Value: 581},
{Name: "FDPOLLDRVSTAT", Value: 2150892051},
{Name: "bpf_insn_load_imm_dw", Value: 24},
}

const revision_386 = "519a941704236f17152699ef7577ed9251da786f"
const revision_386 = "e1d571d7656738305806faf2f939b56bd48fb61c"
}},
{NR: 16, Name: "ioctl$FLOPPY_FDGETPRM", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_floppy", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1075839555},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2149581316},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "floppy_struct", Dir: 1}}},
}},
{NR: 16, Name: "ioctl$FLOPPY_FDMSGOFF", CallName: "ioctl", MissingArgs: 1, Args: []Type{
{Name: "FDGETDRVTYP", Value: 2148532751},
{Name: "FDGETFDCSTAT", Value: 2150105621},
{Name: "FDGETMAXERRS", Value: 2148794894},
{Name: "FDGETPRM", Value: 2149581316},
{Name: "FDMSGOFF", Value: 582},
{Name: "FDMSGON", Value: 581},
{Name: "FDPOLLDRVSTAT", Value: 2152727059},
{Name: "bpf_insn_load_imm_dw", Value: 24},
}

const revision_amd64 = "dc711d6c1782cacc83730da773968ee6bfa6e1c9"
const revision_amd64 = "036bfe5c68bb7bfe0cc9b16821d139bf4e784047"
}},
{NR: 54, Name: "ioctl$FLOPPY_FDGETPRM", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_floppy", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1075577411},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2149319172},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "floppy_struct", Dir: 1}}},
}},
{NR: 54, Name: "ioctl$FLOPPY_FDMSGOFF", CallName: "ioctl", MissingArgs: 1, Args: []Type{
{Name: "FDGETDRVTYP", Value: 2148532751},
{Name: "FDGETFDCSTAT", Value: 2149581333},
{Name: "FDGETMAXERRS", Value: 2148794894},
{Name: "FDGETPRM", Value: 2149319172},
{Name: "FDMSGOFF", Value: 582},
{Name: "FDMSGON", Value: 581},
{Name: "FDPOLLDRVSTAT", Value: 2150892051},
{Name: "bpf_insn_load_imm_dw", Value: 24},
}

const revision_arm = "6ba869e0323201b00a9f14cbf24407b0cfcfeb51"
const revision_arm = "4f93d6fd1be9e81a5269d0c391896732dcf1b956"
}},
{NR: 29, Name: "ioctl$FLOPPY_FDGETPRM", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_floppy", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1075839555},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2149581316},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "floppy_struct", Dir: 1}}},
}},
{NR: 29, Name: "ioctl$FLOPPY_FDMSGOFF", CallName: "ioctl", MissingArgs: 1, Args: []Type{
{Name: "FDGETDRVTYP", Value: 2148532751},
{Name: "FDGETFDCSTAT", Value: 2150105621},
{Name: "FDGETMAXERRS", Value: 2148794894},
{Name: "FDGETPRM", Value: 2149581316},
{Name: "FDMSGOFF", Value: 582},
{Name: "FDMSGON", Value: 581},
{Name: "FDPOLLDRVSTAT", Value: 2152727059},
{Name: "bpf_insn_load_imm_dw", Value: 24},
}

const revision_arm64 = "b21a45c75aa1ed547ed3f71caf5a0aec678d0666"
const revision_arm64 = "c7faa6f5df21fe6bb7786a037d98a97089215d07"
}},
{NR: 54, Name: "ioctl$FLOPPY_FDGETPRM", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_floppy", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2149581379},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1075839492},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "floppy_struct", Dir: 1}}},
}},
{NR: 54, Name: "ioctl$FLOPPY_FDMSGOFF", CallName: "ioctl", MissingArgs: 1, Args: []Type{
{Name: "FDGETDRVTYP", Value: 1074790927},
{Name: "FDGETFDCSTAT", Value: 1076363797},
{Name: "FDGETMAXERRS", Value: 1075053070},
{Name: "FDGETPRM", Value: 1075839492},
{Name: "FDMSGOFF", Value: 536871494},
{Name: "FDMSGON", Value: 536871493},
{Name: "FDPOLLDRVSTAT", Value: 1078985235},
{Name: "bpf_insn_load_imm_dw", Value: 24},
}

const revision_ppc64le = "b162f5cf7ce409d50e412b61883fbe10a40d934b"
const revision_ppc64le = "25180460bf4bd8392ca8a027cc38042d376a10cd"

0 comments on commit a062669

Please sign in to comment.
You can’t perform that action at this time.