atapi.c (9f4bd6baf64b8139cf2d7f8f53a98b27531da13c) atapi.c (541dc0d47f10973c241e9955afc2aefc96adec51)
1/*
2 * QEMU ATAPI Emulation
3 *
4 * Copyright (c) 2003 Fabrice Bellard
5 * Copyright (c) 2006 Openedhand Ltd.
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a copy
8 * of this software and associated documentation files (the "Software"), to deal

--- 543 unchanged lines hidden (view full) ---

552 struct {
553 uint8_t opcode;
554 uint8_t polled; /* lsb bit is polled; others are reserved */
555 uint8_t reserved2[2];
556 uint8_t class;
557 uint8_t reserved3[2];
558 uint16_t len;
559 uint8_t control;
1/*
2 * QEMU ATAPI Emulation
3 *
4 * Copyright (c) 2003 Fabrice Bellard
5 * Copyright (c) 2006 Openedhand Ltd.
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a copy
8 * of this software and associated documentation files (the "Software"), to deal

--- 543 unchanged lines hidden (view full) ---

552 struct {
553 uint8_t opcode;
554 uint8_t polled; /* lsb bit is polled; others are reserved */
555 uint8_t reserved2[2];
556 uint8_t class;
557 uint8_t reserved3[2];
558 uint16_t len;
559 uint8_t control;
560 } __attribute__((packed)) *gesn_cdb;
560 } QEMU_PACKED *gesn_cdb;
561
562 struct {
563 uint16_t len;
564 uint8_t notification_class;
565 uint8_t supported_events;
561
562 struct {
563 uint16_t len;
564 uint8_t notification_class;
565 uint8_t supported_events;
566 } __attribute((packed)) *gesn_event_header;
566 } QEMU_PACKED *gesn_event_header;
567
568 enum notification_class_request_type {
569 NCR_RESERVED1 = 1 << 0,
570 NCR_OPERATIONAL_CHANGE = 1 << 1,
571 NCR_POWER_MANAGEMENT = 1 << 2,
572 NCR_EXTERNAL_REQUEST = 1 << 3,
573 NCR_MEDIA = 1 << 4,
574 NCR_MULTI_HOST = 1 << 5,

--- 575 unchanged lines hidden ---
567
568 enum notification_class_request_type {
569 NCR_RESERVED1 = 1 << 0,
570 NCR_OPERATIONAL_CHANGE = 1 << 1,
571 NCR_POWER_MANAGEMENT = 1 << 2,
572 NCR_EXTERNAL_REQUEST = 1 << 3,
573 NCR_MEDIA = 1 << 4,
574 NCR_MULTI_HOST = 1 << 5,

--- 575 unchanged lines hidden ---