dev-hsa: Fix includes

Partial fix of includes of the files in src/dev/hsa.
It is a partial fix because there might still be
some transitive dependencies - i.e., this process
was not automated.

Change-Id: Ib2f197fc7c97ed1c828c99b2584693cf03b31361
Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/43585
Reviewed-by: Matt Sinclair <mattdsinclair@gmail.com>
Maintainer: Matt Sinclair <mattdsinclair@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
Daniel R. Carvalho
2021-03-24 11:37:41 -03:00
committed by Daniel Carvalho
parent c9415dc389
commit a362ca93b7
8 changed files with 24 additions and 5 deletions

View File

@@ -34,6 +34,11 @@
#ifndef __DEV_HSA_HSA_DEVICE_HH__
#define __DEV_HSA_HSA_DEVICE_HH__
#include <cassert>
#include <cstdint>
#include "base/logging.hh"
#include "base/types.hh"
#include "dev/dma_device.hh"
#include "dev/hsa/hsa_packet_processor.hh"
#include "params/HSADevice.hh"

View File

@@ -33,7 +33,7 @@
#include "dev/hsa/hsa_driver.hh"
#include "cpu/thread_context.hh"
#include "base/trace.hh"
#include "debug/HSADriver.hh"
#include "dev/hsa/hsa_device.hh"
#include "dev/hsa/hsa_packet_processor.hh"

View File

@@ -48,15 +48,18 @@
#ifndef __DEV_HSA_HSA_DRIVER_HH__
#define __DEV_HSA_HSA_DRIVER_HH__
#include <cassert>
#include <cstdint>
#include <set>
#include <unordered_map>
#include "base/logging.hh"
#include "base/types.hh"
#include "cpu/thread_context.hh"
#include "sim/emul_driver.hh"
struct HSADriverParams;
class HSADevice;
class PortProxy;
class HSADriver : public EmulatedDriver
{

View File

@@ -36,7 +36,7 @@
#define _HSA_PACKET_TYPE_VENDOR_SPECIFIC 0
#include <stdint.h>
#include <cstdint>
typedef struct hsa_packet_header_s {
// TODO: replace with more portable impl based on offset, length

View File

@@ -33,6 +33,8 @@
#ifndef DEV_HSA_HSA_SIGNAL_H
#define DEV_HSA_HSA_SIGNAL_H
#include <cstdint>
// AMD Signal Kind Enumeration Values.
typedef int64_t amd_signal_kind64_t;
enum amd_signal_kind_t

View File

@@ -33,8 +33,10 @@
#include "dev/hsa/hw_scheduler.hh"
#include "base/compiler.hh"
#include "base/trace.hh"
#include "debug/HSAPacketProcessor.hh"
#include "mem/packet_access.hh"
#include "sim/cur_tick.hh"
#define HWSCHDLR_EVENT_DESCRIPTION_GENERATOR(XEVENT) \
const char* \

View File

@@ -34,7 +34,12 @@
#ifndef __DEV_HSA_HW_SCHEDULER_HH__
#define __DEV_HSA_HW_SCHEDULER_HH__
#include <cstdint>
#include <map>
#include "base/types.hh"
#include "dev/hsa/hsa_packet_processor.hh"
#include "sim/eventq.hh"
// We allocate one PIO page for doorbells and each
// address is 8 bytes

View File

@@ -23,8 +23,10 @@
#ifndef KFD_IOCTL_H_INCLUDED
#define KFD_IOCTL_H_INCLUDED
#include <linux/types.h>
#include <linux/ioctl.h>
#include <linux/types.h>
#include <cstdint>
#define KFD_IOCTL_MAJOR_VERSION 1
#define KFD_IOCTL_MINOR_VERSION 2