summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/gsp.h
blob: fb50a928ae1af87b2e7e2059a3d302dd1337fdf8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// Copyright 2014 Citra Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.

#pragma once

#include "core/hle/service/service.h"

////////////////////////////////////////////////////////////////////////////////////////////////////
// Namespace GSP_GPU

namespace GSP_GPU {

enum class GXCommandId : u32 {
    REQUEST_DMA            = 0x00000000,
    SET_COMMAND_LIST_LAST  = 0x00000001,
    SET_MEMORY_FILL        = 0x01000102, // TODO: Confirm?
    SET_DISPLAY_TRANSFER   = 0x00000003,
    SET_TEXTURE_COPY       = 0x00000004,
    SET_COMMAND_LIST_FIRST = 0x00000005,
};

union GXCommand {
    struct {
        GXCommandId id;
    };

    u32 data[0x20];
};

/// Interface to "srv:" service
class Interface : public Service::Interface {
public:

    Interface();

    ~Interface();

    /**
     * Gets the string port name used by CTROS for the service
     * @return Port name of service
     */
    const char *GetPortName() const {
        return "gsp::Gpu";
    }

};

} // namespace