summaryrefslogtreecommitdiffstats
path: root/scripts/qapi/common.py
Commit message (Expand)AuthorAgeFilesLines
* qapi: Drop conditionals for Python 2Markus Armbruster2020-03-051-5/+1Star
* qapi: Split up scripts/qapi/common.pyMarkus Armbruster2019-10-221-2321/+0Star
* qapi: Move gen_enum(), gen_enum_lookup() back to qapi/types.pyMarkus Armbruster2019-10-221-59/+0Star
* qapi: Eliminate accidental global frontend stateMarkus Armbruster2019-10-221-2/+3
* qapi: Store pragma state in QAPISourceInfo, not global stateMarkus Armbruster2019-10-221-17/+19
* qapi: Improve source file read error handlingMarkus Armbruster2019-09-281-20/+26
* qapi: Improve reporting of redefinitionMarkus Armbruster2019-09-281-0/+5
* qapi: Improve reporting of missing documentation commentMarkus Armbruster2019-09-281-10/+8Star
* qapi: Eliminate check_keys(), rename check_known_keys()Markus Armbruster2019-09-281-19/+21
* qapi: Improve reporting of invalid 'if' furtherMarkus Armbruster2019-09-281-11/+16
* qapi: Avoid redundant definition references in error messagesMarkus Armbruster2019-09-281-80/+49Star
* qapi: Improve reporting of missing / unknown definition keysMarkus Armbruster2019-09-281-21/+19Star
* qapi: Improve reporting of invalid flagsMarkus Armbruster2019-09-281-10/+12
* qapi: Improve reporting of invalid 'if' errorsMarkus Armbruster2019-09-281-2/+2
* qapi: Move context-free checking to the proper placeMarkus Armbruster2019-09-281-8/+8
* qapi: Move context-sensitive checking to the proper placeMarkus Armbruster2019-09-281-231/+193Star
* qapi: Inline check_name() into check_union()Markus Armbruster2019-09-281-2/+4
* qapi: Plumb info to the QAPISchemaMemberMarkus Armbruster2019-09-281-34/+42
* qapi: Make check_type()'s array case a bit more obviousMarkus Armbruster2019-09-281-1/+2
* qapi: Move check for reserved names out of add_name()Markus Armbruster2019-09-281-6/+10
* qapi: Report invalid '*' prefix like any other invalid nameMarkus Armbruster2019-09-281-4/+2Star
* qapi: Use check_name_str() where it sufficesMarkus Armbruster2019-09-281-5/+4Star
* qapi: Improve reporting of invalid name errorsMarkus Armbruster2019-09-281-4/+16
* qapi: Reorder check_FOO() parameters for consistencyMarkus Armbruster2019-09-281-41/+39Star
* qapi: Improve reporting of member name clashesMarkus Armbruster2019-09-281-13/+23
* qapi: Change frontend error messages to start with lower caseMarkus Armbruster2019-09-281-90/+102
* qapi: Clean up member name case checkingMarkus Armbruster2019-09-281-11/+14
* qapi: Prefix frontend errors with an "in definition" lineMarkus Armbruster2019-09-281-1/+14
* qapi: New QAPISourceInfo, replacing dictMarkus Armbruster2019-09-281-28/+41
* qapi: Rename .owner to .defined_inMarkus Armbruster2019-09-281-30/+31
* qapi: Tighten QAPISchemaFOO.check() assertionsMarkus Armbruster2019-09-281-2/+7
* qapi: Assert .visit() and .check_clash() run only after .check()Markus Armbruster2019-09-241-1/+10
* qapi: Fix excessive QAPISchemaEntity.check() recursionMarkus Armbruster2019-09-241-22/+52
* qapi: Fix to .check() empty structs just onceMarkus Armbruster2019-09-241-1/+1
* qapi: Delete useless check_exprs() code for simple union kindMarkus Armbruster2019-09-241-37/+2Star
* qapi: Clean up around check_known_keys()Markus Armbruster2019-09-241-4/+4
* qapi: Simplify check_keys()Markus Armbruster2019-09-241-11/+8Star
* qapi: Normalize 'if' in check_exprs(), like other sugarMarkus Armbruster2019-09-241-11/+15
* qapi: Fix missing 'if' checks in struct, union, alternate 'data'Markus Armbruster2019-09-241-0/+3
* qapi: Reject blank 'if' conditions in addition to empty onesMarkus Armbruster2019-09-241-2/+3
* qapi: Fix broken discriminator error messagesMarkus Armbruster2019-09-241-5/+4Star
* qapi: Remove null from schema languageMarkus Armbruster2019-09-241-4/+0Star
* qapi: Improve reporting of lexical errorsMarkus Armbruster2019-09-241-1/+5
* qapi: Use quotes more consistently in frontend error messagesMarkus Armbruster2019-09-241-18/+19
* qapi: Tweak code to match docs/devel/qapi-code-gen.txtMarkus Armbruster2019-09-241-12/+12
* qapi: Adjust frontend errors to say enum value, not memberMarkus Armbruster2019-09-241-3/+8
* qapi: Permit omitting all flat union branchesMarkus Armbruster2019-09-241-8/+8
* qapi: Permit alternates with just one branchMarkus Armbruster2019-09-241-4/+2Star
* qapi: Permit 'boxed' with empty typeMarkus Armbruster2019-09-241-12/+2Star
* qapi: Drop support for escape sequences other than \\Markus Armbruster2019-09-241-23/+3Star
ine TARGET_CSIZE 0000060 #define TARGET_CS5 0000000 #define TARGET_CS6 0000020 #define TARGET_CS7 0000040 #define TARGET_CS8 0000060 #define TARGET_CSTOPB 0000100 #define TARGET_CREAD 0000200 #define TARGET_PARENB 0000400 #define TARGET_PARODD 0001000 #define TARGET_HUPCL 0002000 #define TARGET_CLOCAL 0004000 #define TARGET_CBAUDEX 0010000 #define TARGET_B57600 0010001 #define TARGET_B115200 0010002 #define TARGET_B230400 0010003 #define TARGET_B460800 0010004 #define TARGET_B500000 0010005 #define TARGET_B576000 0010006 #define TARGET_B921600 0010007 #define TARGET_B1000000 0010010 #define TARGET_B1152000 0010011 #define TARGET_B1500000 0010012 #define TARGET_B2000000 0010013 #define TARGET_B2500000 0010014 #define TARGET_B3000000 0010015 #define TARGET_B3500000 0010016 #define TARGET_B4000000 0010017 #define TARGET_CIBAUD 002003600000 /* input baud rate (not used) */ #define TARGET_CMSPAR 010000000000 /* mark or space (stick) parity */ #define TARGET_CRTSCTS 020000000000 /* flow control */ /* c_lflag bits */ #define TARGET_ISIG 0000001 #define TARGET_ICANON 0000002 #define TARGET_XCASE 0000004 #define TARGET_ECHO 0000010 #define TARGET_ECHOE 0000020 #define TARGET_ECHOK 0000040 #define TARGET_ECHONL 0000100 #define TARGET_NOFLSH 0000200 #define TARGET_TOSTOP 0000400 #define TARGET_ECHOCTL 0001000 #define TARGET_ECHOPRT 0002000 #define TARGET_ECHOKE 0004000 #define TARGET_FLUSHO 0010000 #define TARGET_PENDIN 0040000 #define TARGET_IEXTEN 0100000 /* c_cc character offsets */ #define TARGET_VINTR 0 #define TARGET_VQUIT 1 #define TARGET_VERASE 2 #define TARGET_VKILL 3 #define TARGET_VEOF 4 #define TARGET_VTIME 5 #define TARGET_VMIN 6 #define TARGET_VSWTC 7 #define TARGET_VSTART 8 #define TARGET_VSTOP 9 #define TARGET_VSUSP 10 #define TARGET_VEOL 11 #define TARGET_VREPRINT 12 #define TARGET_VDISCARD 13 #define TARGET_VWERASE 14 #define TARGET_VLNEXT 15 #define TARGET_VEOL2 16 /* ioctls */ #define TARGET_TCGETS 0x5401 #define TARGET_TCSETS 0x5402 #define TARGET_TCSETSW 0x5403 #define TARGET_TCSETSF 0x5404 #define TARGET_TCGETA 0x5405 #define TARGET_TCSETA 0x5406 #define TARGET_TCSETAW 0x5407 #define TARGET_TCSETAF 0x5408 #define TARGET_TCSBRK 0x5409 #define TARGET_TCXONC 0x540A #define TARGET_TCFLSH 0x540B #define TARGET_TIOCEXCL 0x540C #define TARGET_TIOCNXCL 0x540D #define TARGET_TIOCSCTTY 0x540E #define TARGET_TIOCGPGRP 0x540F #define TARGET_TIOCSPGRP 0x5410 #define TARGET_TIOCOUTQ 0x5411 #define TARGET_TIOCSTI 0x5412 #define TARGET_TIOCGWINSZ 0x5413 #define TARGET_TIOCSWINSZ 0x5414 #define TARGET_TIOCMGET 0x5415 #define TARGET_TIOCMBIS 0x5416 #define TARGET_TIOCMBIC 0x5417 #define TARGET_TIOCMSET 0x5418 #define TARGET_TIOCGSOFTCAR 0x5419 #define TARGET_TIOCSSOFTCAR 0x541A #define TARGET_FIONREAD 0x541B #define TARGET_TIOCINQ TARGET_FIONREAD #define TARGET_TIOCLINUX 0x541C #define TARGET_TIOCCONS 0x541D #define TARGET_TIOCGSERIAL 0x541E #define TARGET_TIOCSSERIAL 0x541F #define TARGET_TIOCPKT 0x5420 #define TARGET_FIONBIO 0x5421 #define TARGET_TIOCNOTTY 0x5422 #define TARGET_TIOCSETD 0x5423 #define TARGET_TIOCGETD 0x5424 #define TARGET_TCSBRKP 0x5425 /* Needed for POSIX tcsendbreak() */ #define TARGET_TIOCTTYGSTRUCT 0x5426 /* For debugging only */ #define TARGET_TIOCSBRK 0x5427 /* BSD compatibility */ #define TARGET_TIOCCBRK 0x5428 /* BSD compatibility */ #define TARGET_TIOCGSID 0x5429 /* Return the session ID of FD */ #define TARGET_TIOCGPTN TARGET_IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */ #define TARGET_TIOCSPTLCK TARGET_IOW('T',0x31, int) /* Lock/unlock Pty */ #define TARGET_TIOCGPTPEER TARGET_IO('T', 0x41) /* Safely open the slave */ #define TARGET_FIONCLEX 0x5450 /* these numbers need to be adjusted. */ #define TARGET_FIOCLEX 0x5451 #define TARGET_FIOASYNC 0x5452 #define TARGET_TIOCSERCONFIG 0x5453 #define TARGET_TIOCSERGWILD 0x5454 #define TARGET_TIOCSERSWILD 0x5455 #define TARGET_TIOCGLCKTRMIOS 0x5456 #define TARGET_TIOCSLCKTRMIOS 0x5457 #define TARGET_TIOCSERGSTRUCT 0x5458 /* For debugging only */ #define TARGET_TIOCSERGETLSR 0x5459 /* Get line status register */ #define TARGET_TIOCSERGETMULTI 0x545A /* Get multiport config */ #define TARGET_TIOCSERSETMULTI 0x545B /* Set multiport config */ #define TARGET_TIOCMIWAIT 0x545C /* wait for a change on serial input line(s) */ #define TARGET_TIOCGICOUNT 0x545D /* read serial port inline interrupt counts */ #define TARGET_TIOCGHAYESESP 0x545E /* Get Hayes ESP configuration */ #define TARGET_TIOCSHAYESESP 0x545F /* Set Hayes ESP configuration */ /* Used for packet mode */ #define TARGET_TIOCPKT_DATA 0 #define TARGET_TIOCPKT_FLUSHREAD 1 #define TARGET_TIOCPKT_FLUSHWRITE 2 #define TARGET_TIOCPKT_STOP 4 #define TARGET_TIOCPKT_START 8 #define TARGET_TIOCPKT_NOSTOP 16 #define TARGET_TIOCPKT_DOSTOP 32 #define TARGET_TIOCSER_TEMT 0x01 /* Transmitter physically empty */ #endif