qemu-patch-raspberry4/include/hw/display/xlnx_dp.h
Peter Maydell e0dadc1e9e aux: Rename aux.[ch] to auxbus.[ch] for the benefit of Windows
On Windows 'aux.*' is a reserved name and cannot be used for
filenames; see
  https://msdn.microsoft.com/en-gb/library/windows/desktop/aa365247(v=vs.85).aspx

This prevents cloning the QEMU git repo on Windows:

C:\Java\sources\kvm> git clone https://github.com/qemu/qemu.git
Cloning into 'qemu'...
remote: Counting objects: 279563, done.
remote: Total 279563 (delta 0), reused 0 (delta 0), pack-reused 279563R
Receiving objects: 100% (279563/279563), 122.45 MiB | 3.52 MiB/s, done.
Resolving deltas: 100% (221942/221942), done.
Checking connectivity... done.
error: unable to create file hw/misc/aux.c (No such file or directory)
error: unable to create file include/hw/misc/aux.h (No such file or directory)
Checking out files: 100% (4795/4795), done.
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'

(bug https://bugs.launchpad.net/bugs/1595240)

Rename the offending files for the benefit of Windows.

Reported-by: Алексей Курган <akurgan@yandex.ru>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Wei Huang <wei@redhat.com>
Tested-by: KONRAD Frederic <fred.konrad@greensocs.com>
Message-id: 1467377145-32385-1-git-send-email-peter.maydell@linaro.org
2016-07-07 13:47:01 +01:00

110 lines
3 KiB
C

/*
* xlnx_dp.h
*
* Copyright (C) 2015 : GreenSocs Ltd
* http://www.greensocs.com/ , email: info@greensocs.com
*
* Developed by :
* Frederic Konrad <fred.konrad@greensocs.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.
*
* 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, see <http://www.gnu.org/licenses/>.
*
*/
#include "hw/sysbus.h"
#include "ui/console.h"
#include "hw/misc/auxbus.h"
#include "hw/i2c/i2c.h"
#include "hw/display/dpcd.h"
#include "hw/i2c/i2c-ddc.h"
#include "qemu/fifo8.h"
#include "hw/dma/xlnx_dpdma.h"
#include "audio/audio.h"
#ifndef XLNX_DP_H
#define XLNX_DP_H
#define AUD_CHBUF_MAX_DEPTH 32768
#define MAX_QEMU_BUFFER_SIZE 4096
#define DP_CORE_REG_ARRAY_SIZE (0x3AF >> 2)
#define DP_AVBUF_REG_ARRAY_SIZE (0x238 >> 2)
#define DP_VBLEND_REG_ARRAY_SIZE (0x1DF >> 2)
#define DP_AUDIO_REG_ARRAY_SIZE (0x50 >> 2)
struct PixmanPlane {
pixman_format_code_t format;
DisplaySurface *surface;
};
typedef struct XlnxDPState {
/*< private >*/
SysBusDevice parent_obj;
/* < public >*/
MemoryRegion container;
uint32_t core_registers[DP_CORE_REG_ARRAY_SIZE];
MemoryRegion core_iomem;
uint32_t avbufm_registers[DP_AVBUF_REG_ARRAY_SIZE];
MemoryRegion avbufm_iomem;
uint32_t vblend_registers[DP_VBLEND_REG_ARRAY_SIZE];
MemoryRegion vblend_iomem;
uint32_t audio_registers[DP_AUDIO_REG_ARRAY_SIZE];
MemoryRegion audio_iomem;
QemuConsole *console;
/*
* This is the planes used to display in console. When the blending is
* enabled bout_plane is displayed in console else it's g_plane.
*/
struct PixmanPlane g_plane;
struct PixmanPlane v_plane;
struct PixmanPlane bout_plane;
QEMUSoundCard aud_card;
SWVoiceOut *amixer_output_stream;
int16_t audio_buffer_0[AUD_CHBUF_MAX_DEPTH];
int16_t audio_buffer_1[AUD_CHBUF_MAX_DEPTH];
size_t audio_data_available[2];
int64_t temp_buffer[AUD_CHBUF_MAX_DEPTH];
int16_t out_buffer[AUD_CHBUF_MAX_DEPTH];
size_t byte_left; /* byte available in out_buffer. */
size_t data_ptr; /* next byte to be sent to QEMU. */
/* Associated DPDMA controller. */
XlnxDPDMAState *dpdma;
qemu_irq irq;
AUXBus *aux_bus;
Fifo8 rx_fifo;
Fifo8 tx_fifo;
/*
* XXX: This should be in an other module.
*/
DPCDState *dpcd;
I2CDDCState *edid;
} XlnxDPState;
#define TYPE_XLNX_DP "xlnx.v-dp"
#define XLNX_DP(obj) OBJECT_CHECK(XlnxDPState, (obj), TYPE_XLNX_DP)
#endif /* !XLNX_DP_H */