Skip to content

Commit

Permalink
treewide: rename card.{c,h} to libtwl_card.{c,h}
Browse files Browse the repository at this point in the history
This makes it a bit more obvious to where this code came from.
  • Loading branch information
lifehackerhansol committed Sep 23, 2023
1 parent 1689a95 commit 8734374
Show file tree
Hide file tree
Showing 16 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions common_source/card.c → common_source/libtwl_card.c
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/*
NDS Card routines
This file is a part of libtwl (card.c)
Copyright (C) 2023 Gericom
SPDX-License-Identifier: Zlib
*/

#include <nds/ndstypes.h>
#include "card.h"
#include "libtwl_card.h"

void card_romCpuRead(u32* dst, u32 words)
{
Expand Down
2 changes: 1 addition & 1 deletion common_source/card.h → common_source/libtwl_card.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
NDS Card routines
This file is a part of libtwl (card.h)
Copyright (C) 2023 Gericom
Expand Down
2 changes: 1 addition & 1 deletion source/ace3ds_sd/source/ioa3p.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include <nds/ndstypes.h>
#include "ioa3p.h"
#include "card.h"
#include "libtwl_card.h"

static inline void ioA3PReadCardData(u64 command, u32 flags, void *buffer, u32 length)
{
Expand Down
2 changes: 1 addition & 1 deletion source/ace3ds_sd/source/iointerface.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <nds/ndstypes.h>

#include "ioa3p.h"
#include "card.h"
#include "libtwl_card.h"

// Initialize the driver. Returns true on success.
bool startup(void)
Expand Down
2 changes: 1 addition & 1 deletion source/g003/source/iointerface.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <nds/ndstypes.h>

#include "iom0.h"
#include "card.h"
#include "libtwl_card.h"

// Initialize the driver. Returns true on success.
bool startup(void)
Expand Down
2 changes: 1 addition & 1 deletion source/g003/source/iom0.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include <nds/ndstypes.h>
#include "iom0.h"
#include "card.h"
#include "libtwl_card.h"

static inline void ioM0ReadCardData(u64 command, u32 flags, void *buffer, u32 length)
{
Expand Down
2 changes: 1 addition & 1 deletion source/m3ds/source/iointerface.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <nds/ndstypes.h>

#include "iom3.h"
#include "card.h"
#include "libtwl_card.h"

// Initialize the driver. Returns true on success.
bool startup(void)
Expand Down
2 changes: 1 addition & 1 deletion source/m3ds/source/iom3.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include <nds/ndstypes.h>
#include "iom3.h"
#include "card.h"
#include "libtwl_card.h"

static inline void ioM3ReadCardData(u64 command, u32 flags, void *buffer, u32 length)
{
Expand Down
2 changes: 1 addition & 1 deletion source/r4tfv3/source/iointerface.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <nds/ndstypes.h>

#include "ior4.h"
#include "card.h"
#include "libtwl_card.h"

// Initialize the driver. Returns true on success.
bool startup(void)
Expand Down
2 changes: 1 addition & 1 deletion source/r4tfv3/source/ior4.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include <nds/ndstypes.h>
#include "ior4.h"
#include "card.h"
#include "libtwl_card.h"

static inline void ioR4ReadCardData(u64 command, u32 flags, void *buffer, u32 length)
{
Expand Down
2 changes: 1 addition & 1 deletion source/scds3/source/iointerface.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <nds/ndstypes.h>

#include "scds.h"
#include "card.h"
#include "libtwl_card.h"

// Initialize the driver. Returns true on success.
bool startup(void)
Expand Down
2 changes: 1 addition & 1 deletion source/scds3/source/scds.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include <nds/ndstypes.h>
#include <assert.h>
#include "scds.h"
#include "card.h"
#include "libtwl_card.h"

static inline void SCDS_ReadCardData(u64 command, u32 flags, void *buffer, u32 length)
{
Expand Down
2 changes: 1 addition & 1 deletion source/scdssdhc2/source/iointerface.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <nds/ndstypes.h>

#include "scdssdhc.h"
#include "card.h"
#include "libtwl_card.h"

static bool is_sdhc = false;

Expand Down
2 changes: 1 addition & 1 deletion source/scdssdhc2/source/scdssdhc.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include <nds/ndstypes.h>
#include "scdssdhc.h"
#include "card.h"
#include "libtwl_card.h"

static inline void SCDS_ReadCardData(u64 command, u32 flags, void *buffer, u32 length)
{
Expand Down
2 changes: 1 addition & 1 deletion source/ttio/source/iointerface.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <nds/ndstypes.h>

#include "scdssdhc.h"
#include "card.h"
#include "libtwl_card.h"

#if defined(SDHC)
#define is_sdhc 1
Expand Down
2 changes: 1 addition & 1 deletion source/ttio/source/scdssdhc.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include <nds/ndstypes.h>
#include "scdssdhc.h"
#include "card.h"
#include "libtwl_card.h"

static inline void SCDS_ReadCardData(u64 command, u32 flags, void *buffer, u32 length)
{
Expand Down

0 comments on commit 8734374

Please sign in to comment.